运行结果:

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("");
}