计算toes的二倍以及平方。
#include <stdio.h>
int main()
{
int toes;
int two_toes;
int square_toes;
toes=10;
two_toes=toes*2;
square_toes=toes*toes;
printf("三位值分别为 %d %d %d\n",toes,two_toes,square_toes);
return 0;
}
这个程序定义了一个变量toes并赋值为10,然后计算了toes的两倍(two_toes)和平方(square_toes)。最后通过printf函数输出了这三个数值。
计算toes的二倍以及平方。
#include <stdio.h>
int main()
{
int toes;
int two_toes;
int square_toes;
toes=10;
two_toes=toes*2;
square_toes=toes*toes;
printf("三位值分别为 %d %d %d\n",toes,two_toes,square_toes);
return 0;
}
1061

被折叠的 条评论
为什么被折叠?