+ 1
my first program is getting an error ... whats wrong
#include <stdio.h> int main() { printf("(I am great"); int a,b,; a=10; b=5; printf("%d+%d=%d",a,b,a+b); return 0; }
4 Respuestas
+ 14
Just remove the extra comma before semi-colon at last of declaration of int a and b.
write this:
int a,b;
It will give a output.
+ 1
What Ketan [#Be Happy 😸] said, you've got two semicolons in your code
int a, b;;
0
What is the output?
0
See this code for finding your errors
https://code.sololearn.com/cmRtCNY30vUG/?ref=app