Math, asked by hariyankalvpe0nj2, 1 year ago

What is the length of period of 1/7?

Answers

Answered by singhmohit097937
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