Saturday, February 23, 2013

C Program To Find The Cubes Of 1 to 10 Numbers Using Any Loop.

#include<stdio.h>
#include<conio.h>
void main ()
{
int i, j=1;
clrscr ();
printf("\n Enter the Number from 1 to 10:-");
printf("\nNumber \tcube");
for(i=1;i<=10; i++)
{
printf("\n%d\t",i);
j=i*i*i;
printf("%d\n\t", j);
}
getch();
}



Follow Us On Facebook !!!

No comments:

Post a Comment