26. Program to Calculate Sum of Natural Numbers from 25 to 39 Get link Facebook X Pinterest Email Other Apps - August 26, 2015 Get link Facebook X Pinterest Email Other Apps Comments Unknown2:30 PM//Sum of natural number#include#includevoid main(){int i,sum=0;clrscr();printf("\nSum of Natural number from 25 to 39");for(i=25;i<=39;i++){sum+=i;printf("\n\tsum = \t%d",sum);}getch();}ReplyDeleteRepliesReplyAdd commentLoad more... Post a Comment
//Sum of natural number
ReplyDelete#include
#include
void main()
{
int i,sum=0;
clrscr();
printf("\nSum of Natural number from 25 to 39");
for(i=25;i<=39;i++)
{
sum+=i;
printf("\n\tsum = \t%d",sum);
}
getch();
}