noexit4u.com
Pages
(Move to ...)
Home
C Program List
Java Program List
Miscellaneous
Upload
Contact Us
Disclaimer
▼
Category
C Program
HD Wallpaper
HjSplit
Java Program
Mozilla Firefox
Tutorials
Video
VLC
Windows
Adsense responsive
Wednesday, 27 February 2013
C PROGRAM: TO CALCULATE SUM OF SERIES 1/1+1/2+1/3+-------+1/10
CODING:
#include<stdio.h>
#include<conio.h>
void main()
{
int i;
float sum=0;
clrscr();
for(i=1;i<=10;i++)
{
sum=sum+1.0/i;
}
printf("Sum of series= %f",sum);
getch();
}
CODING
OUTPUT
For any query or suggestion please comment below...
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment