What is the length of period of 1/7?
Answers
Answered by
17
give a positive integer n find the period in decimal value of 1 / and period in decimal value is number of digit somewhere after decimal point that keep repeating
FOR EXAMPLE: -
INPUT=3
OUTPUT =1
the value of 1/3 is 0. 333333
INPUT n =7
OUTPUT = 6
the value of 1/7 is 0.142857142857142857
INPUT n=210
OUTPUT=6
the value of 1/2 10 is 0.0047619047619048 ANSWER
Similar questions
Political Science,
7 months ago
Math,
7 months ago
English,
7 months ago
Math,
1 year ago
Geography,
1 year ago