Write a program in C language to display the series with their sum 1,2,3,4 up to 10th terms.
Soln,
#include
Int main()
{
Int I,s=0;
{
Printf(“%d”, I);
s=s+i;
}
Printf(Sum is%d” , s);
return 0;
}
Write a program in C language to display the series with their sum 1,2,3,4 up to 10th terms.
Soln,
#include
Int main()
{
Int I,s=0;
{
Printf(“%d”, I);
s=s+i;
}
Printf(Sum is%d” , s);
return 0;
}
Leave a Reply
You must be logged in to post a comment.