c how to program 习题3.42

发布于2020-05-16 1,034 热度

运行结果:

C语言结果:

/* c how to program 习题3.42 */
#include <stdio.h>

// function main begins program execution
int main( void )
{
    //分别定义变量x,y
    int x, y;
    printf("请分别请入x y的值:");
    scanf("%d %d", &x, &y);
    printf("%d", 1 + (x + y));
    puts("");
}

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