0
Is this right?
I start now to coding and I did this code, what is wrong? https://code.sololearn.com/c4hVDXERMyu1/?ref=app
1 Answer
+ 6
Correct code:
#include <iostream>
using namespace std;
int main() {//sum a+b
int sum;
cout<<"Insert a number a \n";
int a;
cin>>a
cout<<"Insert a number b \n";
int b;
cin>>b;
sum = a + b;
cout<<"Sum is:"<<sum;
return 0;
}