Program to print Cube of Given Number | SpiderShell
Program :
#include<stdio.h>
int main()
{
int number;
printf("The number is: ");
scanf("%d",&number);
printf("The cube of number is:%d",number*number*number);
return 0;
}
Output :
The number is: 4
The cube of number is: 64

0 Comments:
Post a Comment