Write A Program To Print 1+ 1/2 + 1/3 + 1/4 +⋯+ 1

By

AIM: Write A Program To Print   1+ 1/2 + 1/3 + 1/4 +⋯+ 1

LOGIC:  Take no. of terms of series from user.

                Now apply = + 1.0 / ; // where sum and i are variable.

Syntex:

 

0 comments:

Post a Comment

Powered by Blogger.