View Code of Problem 1

#include<stdio.h>
int main()
{
  int A,B,C;
  printf("请输入两个数字");
    scanf("%d%d",&a,&b);
  C=A+B;
  printf("A+B=%d",C);
  return 0;
}
/*
Main.c: In function 'main':
Main.c:6:19: error: 'a' undeclared (first use in this function)
     scanf("%d%d",&a,&b);
                   ^
Main.c:6:19: note: each undeclared identifier is reported only once for each function it appears in
Main.c:6:22: error: 'b' undeclared (first use in this function)
     scanf("%d%d",&a,&b);
                      ^
*/

Double click to view unformatted code.


Back to problem 1