0
Whats the error here?
#include<stdio.h> int main (); { printf("addition between two digits\n"); int x; puts("input value 1"); scanf("%d",&x); int y; puts("input value 2"); scanf("%d", &y); int sum; sum = x + y; printf("the sum is %d\n" , sum); //here sum is %d because int sum; , which means the sum is a variable here and the value of variable is defined or mentioned as %d }
2 odpowiedzi
+ 1
Remove that semicolon after main().
0
int main() function terminates due to semicolon