当前位置:网站首页>Sphere volume

Sphere volume

2020-12-06 20:43:18 Piglets need to learn programming

#include<stdio.h>
#include<stdlib.h>
int main() {
	float a, b;//a For input value ,b The value is the output 
	a = 0;
	printf("a=");
	scanf_s("%f", &a);
	b = 4.0 / 3.0 * 3.141592 * a * a * a;
	printf(" The volume of the ball is %f", b);
	return 0;
}

版权声明
本文为[Piglets need to learn programming]所创,转载请带上原文链接,感谢
https://chowdera.com/2020/12/202012062039210250.html