Saturday, 10 December 2011

Write a program to print the ten numbers CUBE in c

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

OUTPUT
1 8 27 64 125 216 343 512 729 1000

No comments:

Post a Comment