#include <stdio.h>
double cubed(double n); // prototype declaration for cubed
int main(void){
double input;
printf("Enter a number to cube: ");
scanf("%lf", &input);
printf("%.3f cubed is %.3f/n", input, cubed(input));
return 0;
}
double cubed(double n){
return n * n * n;
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266706.html