程序:
#include "stdafx.h" int _tmain(int argc, _TCHAR* argv[]) { float sphereRadius=10.0f; float sphereVolumn=4.0f/3.0f*3.14159*sphereRadius*sphereRadius*sphereRadius; printf("Sphere Volumn=%f",sphereVolumn); int i; scanf("%d",&i); return 0; }
输出:
Sphere Volumn=4188.786621
--2020年6月9日--