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:1: warning: implicit declaration of function 'whlie' [-Wimplicit-function-declaration]
 whlie(scanf("%d%d",&A,&B)!=EOF)
 ^~~~~
Main.c:6:32: error: expected ';' before '{' token
 whlie(scanf("%d%d",&A,&B)!=EOF)
                                ^
                                ;
 {
 ~                               
Main.c:5:5: warning: unused variable 'sum' [-Wunused-variable]
 int sum;
     ^~~
*/

Double click to view unformatted code.


Back to problem 1