#include <stdio.h>
int main (){
float d = 6.5;
float half, square, cube;
half = d / 2;
square = d * d;
cube = d * d * d;
printf("/nYour number is %.2f/n", d);
printf("Half of it is %.2f/n", half);
printf("Square it to get %.2f/n", square);
printf("Cube it to get %.2f/n", cube);
return 0;
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266477.html