0

This is showing error plz help me plz plz

https://code.sololearn.com/c21CKiWz48LG/?ref=app

14th Jul 2020, 10:09 AM
Pooja Agrawal
Pooja Agrawal - avatar
4 RĂ©ponses
+ 5
Use this int a, b, c ; cin> a; cin > b c = a+b ; cout << c;
14th Jul 2020, 10:12 AM
Shahghasi Adil
Shahghasi Adil - avatar
+ 2
first add a ; at the end of line9 then add a * before the last / and change this: cout<<"suma"; to: cout<<suma;
14th Jul 2020, 10:19 AM
GHOST mHBr
GHOST mHBr - avatar
+ 2
change your code like this↓ #include <iostream> using namespace std; int main() { int sum[2]; cin >> sum[0]; cin >> sum[1]; int suma = sum[0] + sum[1]; cout << "answer is:" << suma; return 0; }
14th Jul 2020, 10:32 AM
˜”*°‱.˜”*°‱ Mohan 333 ‱°*”˜.‱°*”˜
˜”*°‱.˜”*°‱ Mohan 333 ‱°*”˜.‱°*”˜ - avatar
0
int main() { int sum[2]; cin >> sum[0]; cin >> sum[1]; int suma = sum[0] + sum[1]; cout << "answer is:" << suma; return 0; } /*this is a calculator but this only add numbers if you want to change then see below*/ /*replace the plus sign between sum[0] sum[1] for subtraction = - for multiplication = * for division = */
14th Jul 2020, 10:26 AM
Abhay
Abhay - avatar