定义int变量并输出其值

编写一个程序,创建一个名为toes的整数变量,设置它的值为10。计算两次脚趾的数量和脚趾的平方数。打印所有三个值,识别它们。

#include <stdio.h>  
int main(void)  
{  
    int toes;  

    toes = 10;  

    printf(toes = %d\n, toes);  

    printf(Twice toes = %d\n, 2 * toes);  

    printf(toes squared = %d\n, toes * toes);  

    return 0;  
}

相关文章

for遍历数组
。。。
声明一个计数循环
咕咕咕
#include <stdio.h> int main (void) { printf (&quo...