C语言用户输入一个整数,打印从1到该整数的平方根和立方根表,保留3位小数#include #include void main(){\x05int num,x;double y,z; \x05\x05printf("input a number");\x05scanf("%f",&x);\x05printf("number squroot cubroot\n");\x05p
来源:学生作业帮助网 编辑:作业帮 时间:2024/08/15 07:18:34
![C语言用户输入一个整数,打印从1到该整数的平方根和立方根表,保留3位小数#include #include void main(){\x05int num,x;double y,z; \x05\x05printf(](/uploads/image/z/11646226-10-6.jpg?t=C%E8%AF%AD%E8%A8%80%E7%94%A8%E6%88%B7%E8%BE%93%E5%85%A5%E4%B8%80%E4%B8%AA%E6%95%B4%E6%95%B0%2C%E6%89%93%E5%8D%B0%E4%BB%8E1%E5%88%B0%E8%AF%A5%E6%95%B4%E6%95%B0%E7%9A%84%E5%B9%B3%E6%96%B9%E6%A0%B9%E5%92%8C%E7%AB%8B%E6%96%B9%E6%A0%B9%E8%A1%A8%2C%E4%BF%9D%E7%95%993%E4%BD%8D%E5%B0%8F%E6%95%B0%23include+%23include+void+main%28%29%7B%5Cx05int+num%2Cx%3Bdouble+y%2Cz%3B+%5Cx05%5Cx05printf%28%22input+a+number%22%29%3B%5Cx05scanf%28%22%25f%22%2C%26x%29%3B%5Cx05printf%28%22number+squroot+cubroot%5Cn%22%29%3B%5Cx05p)
C语言用户输入一个整数,打印从1到该整数的平方根和立方根表,保留3位小数#include #include void main(){\x05int num,x;double y,z; \x05\x05printf("input a number");\x05scanf("%f",&x);\x05printf("number squroot cubroot\n");\x05p
C语言用户输入一个整数,打印从1到该整数的平方根和立方根表,保留3位小数
#include
#include
void main()
{
\x05int num,x;
double y,z;
\x05\x05printf("input a number");
\x05scanf("%f",&x);
\x05printf("number squroot cubroot\n");
\x05printf("------ ------- -------\n");
\x05for (num = 1;num
C语言用户输入一个整数,打印从1到该整数的平方根和立方根表,保留3位小数#include #include void main(){\x05int num,x;double y,z; \x05\x05printf("input a number");\x05scanf("%f",&x);\x05printf("number squroot cubroot\n");\x05p
#include
#include
int main()//这里
{
\x05int x;
double y,z,num; //这里
\x05printf("input a number:");
\x05scanf("%d",&x);//这里
\x05printf("number squroot cubroot\n");
\x05printf("------ ------- -------\n");
\x05for (num = 1;num