c how to program 习题2.3

发布于2020-03-01 883 热度

//c how to program 习题2.3
#include <stdio.h>
int main (void)
{
    
    printf("请输入一个整数:");
    int number;
    scanf("%d", &number);
    if (number != 7){
        printf("The variable number is not equal to 7.\n");
    }
    printf("This is a C program.\n");
    printf("This is a C\nprogram.\n");
    printf("This\nis\na\nC\nprogram.\n");
    printf("This\tis\ta\tC\tprogram.\n");
}


记录工作,记录学习,分享知识,分享经验……