#include"stdio.h"
double cube(double v)
{
// return v*v*v;
double ans;
ans=v*v*v;
return ans;
}
int main (void)
{
double val;
printf("Enter a number:\n");
scanf("%lf", &val);
printf("The cube of %lf is %lf\n", val,cube(val));
system("pause");
return 0;
}
0 comments:
Post a Comment