Pages

Saturday, 19 May 2012

program to print the ten numbers CUBE


52./*Write a program to print the ten numbers CUBE*/

#include<stdio.h>
#include<conio.h>
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