0

Is this right?

I start now to coding and I did this code, what is wrong? https://code.sololearn.com/c4hVDXERMyu1/?ref=app

28th Nov 2017, 11:24 AM
Yannodo
Yannodo - avatar
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; }
28th Nov 2017, 11:28 AM
Cool Codin
Cool Codin - avatar