Logo 
Search:

C++ Programming Article

Submit Article
Comments on Program to compute and print out the decimal notation for the reciprocal of each input integer

Write a program to compute and print out the decimal notation for the reciprocal of each input integer.

The input to your program will contain a list of such positive integers, one per line. Each integer will be greater than 1 and will contain no more than 72 digits. The input will be terminated by a zero appearing on a line itself. No integers whose reciprocals are infinitely repeating decimals will be entered.

Your output should print the reciprocal for each input integer in decimal form.


Patriciar Carlton
Patriciar Carlton from IndiaDec 10
A computer programmer is never out of job! Every organization keeps looking for smart programmers who can write, test, debug and control computer programs.Shares to Buy


Please enter your Comment
  • Comment should be atleast 15 Characters.
  • Please put code inside [Code] your code [/Code].