AnmolKnowledge
Monday, November 4, 2019
Program to print sum of n natural even number
#include<stdio.h>
#include<conio.h>
main()
{
int n,i=2 ,s=0;
while(i<=n*2)
{
s=s+i;
i=i+2;
}
printf("%d",i);
}
1 comment:
Mr. Anmol
November 16, 2019 at 6:31 AM
thnx
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
thnx
ReplyDelete