4th Jul 2017, 10:20 AM
Varun Chaaras
Varun Chaaras - avatar
6 odpowiedzi
+ 8
you are doing addition before anything is stored inside the variables. move a+b to after user input then cout << "sum " << sum << endl; to see the sum
4th Jul 2017, 10:24 AM
jay
jay - avatar
+ 4
I will remove my copy now, as it is your code 😊
4th Jul 2017, 10:30 AM
jay
jay - avatar
+ 3
Yes indeed it is!
4th Jul 2017, 10:29 AM
jay
jay - avatar
4th Jul 2017, 10:28 AM
Varun Chaaras
Varun Chaaras - avatar
+ 2
is this correct too ?
4th Jul 2017, 10:29 AM
Varun Chaaras
Varun Chaaras - avatar
+ 1
thx
4th Jul 2017, 10:25 AM
Varun Chaaras
Varun Chaaras - avatar