Contact Information

Theodore Lowe, Ap #867-859
Sit Rd, Azusa New York

We Are Available 24/ 7. Call Now.
Hello guys today i am sharing Program To Input A Number And Display Its Cube In C .

 

Here is The Program that you Can Copy and Compile IT .

#include<stdio.h> 
#include <conio.h>
 void main()
 { int n,cube; 
printf("enter an number to get cube "); 
scanf("%d",&n); 
cube=n*n*n; 
printf("the cube of given number is %d",cube); 
getch(); 
}

If You are Using DevC++ than Use int main() Instead Of void main()

Output of Program To Input A Number And Display Its Cube In C

 

Hope You Will Understand . If you have any issue You can contact Me in my Facebook  .


administrator

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments