#include<stdio.h>
void double_value(double n);
int main()
{
double value;
printf("Please enter the double value :");
scanf_s("%lf", &value);
while (value>0.00)
{
double_value(value);
printf("\nPlease enter the double value :");
scanf_s("%lf", &value);
}
return 0;
}
void double_value(double n)
{
n = n * n * n;
printf("The cube of this number is %.3f", n);
}
标签:lf,double,void,enter,value,C语言,学习,printf
From: https://blog.51cto.com/u_16147979/7428197