Computer Science, asked by siliyadhital, 19 days ago

5 55 555 5 5 5 5 5 5 5 5 5 write a program to generate the following results.

Answers

Answered by Subhadeepsaha19E54
1

Answer:

um = 5 + 55 + 555 +…. n conditions. = 5/9 [9 + 99 + 999 +…. n terms] = 5/9 [(10 - 1) + (100 - 1) + (1000 - 1) + ... n terms] = 5/9 [10 + 100 + 1000 ….. – (1 + 1 +… 1)] = 5/9 [10(10n - 1)/(10 - 1) + (1 + 1 + ... n times)] = 50/81(10n - 1) - 5n/9

Similar questions