View Code of Problem 1

1.#include<stdio.h>
2.int main(){
3.  int a,b,c;
4.  scanf("%d,%d\n",&a,&b);
5.  c=a+b;
6.  printf("%d",c);
}
/*
Main.c:1:1: error: expected identifier or '(' before numeric constant
 1.#include<stdio.h>
 ^
Main.c:1:3: error: stray '#' in program
 1.#include<stdio.h>
   ^
Main.c:2:1: error: invalid suffix "int" on floating constant
 2.int main(){
 ^
*/

Double click to view unformatted code.


Back to problem 1