View Code of Problem 1

#include<stdio.h>
int main()
{
int A,B;
	int sum;
  whlie(scanf("%d%d",&A,&B)!=EOF)
  {
	sum=A+B;
	printf("%d ",sum);
  }
}

/*
Main.c: In function 'main':
Main.c:6:3: warning: implicit declaration of function 'whlie' [-Wimplicit-function-declaration]
   whlie(scanf("%d%d",&A,&B)!=EOF)
   ^~~~~
Main.c:6:34: error: expected ';' before '{' token
   whlie(scanf("%d%d",&A,&B)!=EOF)
                                  ^
                                  ;
   {
   ~                               
Main.c:5:6: warning: unused variable 'sum' [-Wunused-variable]
  int sum;
      ^~~
*/

Double click to view unformatted code.


Back to problem 1