Q: program to print 1,11,20,28,35,41,46,50,...........
#include
#include
void main()
{
int i=10,sum=1;
clrscr();
printf("%d ",sum);
for(i=10;i>=1;i--)
{
sum=sum+i;
printf("%d ",sum);
}
getch();
}
This blog is for the struggling programmers who need assitance..
No comments:
Post a Comment