answersLogoWhite

0

solution for nth decimal place in pi value

----------------------------------------------------------------

int i=1,rem = 22%7,result=22/7;

while(i<=n)

{

rem = rem*10;

result = rem/7;

rem = rem%7;

i++;

}

printf("nth decimal%d",result);

input: 15(means 15th decimal place in pi value)...

User Avatar

Wiki User

17y ago

What else can I help you with?

Trending Questions
What is the title for the group of plane shapes? How do you solve tan2 theta equals 3 where the equation for theta is less than or equal to theta less than 2 pi? What Is a simile for something hot? Which measure would best to use in determining how much money customers usually spend a. range b mode c. median d. mean? How do you use the word almighty in a sentence? A square of side x inches is cut out each corner of a 10In by 18In piece of cardboard and the sides are folded up to form an open topped box write the volume v of the box as a function of x? Is it possible for a system of two linear inequalities to ha a single point as a solution? What is the gcf of 60 and 90? Which postulate or theorem can be used to prove that triangle PRS is congruent to triangle QRS? Is it possible that a square can have the same perimeter and area? What is the value of x in the equation 3 over 4x plus 2 equals 5 over 4x-6? Why must an angle's measurement always be 360 degrees or less? Janice has three CD storage cases that can hold 18 36 and 72 CD'sthe cases have sections holding the same number of CD'swhat greatest number of CD's in a section? When it says 5 x 8 in size is the 5 the length or the width? Is there any foreshadowing in the alchemist? What is the exponential form of 1125? Find the possible values of r in the inequality 5 r - 3? What is the analogy of mountain is to fountain as change is to a word starting with scr spr str or thr? What are the applications of matrices in field of ece? What is a t squared fire?