Wednesday, 19 August 2015

Programming in C to find the cube of any number

#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int y,x;
clrscr();
printf("\nEnter a number for its cube");
scanf("%d",&x);
y=pow(x,3);
printf("\nCube of the given number is %d ",y);
getch();
}

No comments:

Post a Comment