0
Is it correct???If it is wrong plz tell me where is the correction??
#include <stdio.h> #include <conio.h> main() { int a,b,s; printf ("value of a= "); scanf ("%d",&a); printf ("value of b= "); scanf ("%d",&b); s=a+b; printf ("%d",s); return 0; }
6 Answers
+ 2
this is c++ try this in c programming
and specify return type in main function if you are using integer try int main ()
if wanna use this app try this code instead of that one
#include <iostream>
using namespace std;
int main ()
{
int a,b,s;
cout <<"enter value of a"<<endl;
cin>>a;
cout <<"enter value of b"<<endl;
cin>>b;
s=a+b;
cout <<s;
return 0;
}
+ 1
what error r u getting? the code seems to be right
+ 1
i just compiled ur code in cppDroid ! i didn't get any error
0
When I write this code in this app it shows wrong output!!
0
Are you coding in C or C++?! : )
0
dude this app is only compatible for c++ and not C y dont u try starting with c++ directly it will be easy for u to learn any language coz c++ has oop concepts happy coding!!