Saturday, 10 December 2011

Write a program to print series 0,3,8,15,24,35,48,63,80,99 in c

#include
#include
main()
{
int i;
clrscr();
for(i=1;i<=10;i++)
{
printf("%d,",i*i-1);
}
getch();
}

OUTPUT
0,3,8,15,24,35,48,63,80,99

No comments:

Post a Comment