+ 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; }

4th Feb 2020, 1:29 PM
Bleigh T.J Bande
Bleigh T.J Bande - avatar
4 Antworten
+ 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.
4th Feb 2020, 1:33 PM
Ketan [#Be Happy 😄]
Ketan [#Be Happy 😄] - avatar
+ 1
What Ketan [#Be Happy 😸] said, you've got two semicolons in your code int a, b;;
4th Feb 2020, 1:40 PM
HNNX 🐿
HNNX 🐿 - avatar
0
What is the output?
4th Feb 2020, 1:31 PM
Stephan
Stephan - avatar
0
See this code for finding your errors https://code.sololearn.com/cmRtCNY30vUG/?ref=app
5th Feb 2020, 3:54 AM
Giriraj Yalpalwar
Giriraj Yalpalwar - avatar