0
This is showing error plz help me plz plz
4 RĂ©ponses
+ 5
Use this
int a, b, c ;
cin> a;
cin > b
c = a+b ;
cout << c;
+ 2
first add a ; at the end of line9
then add a * before the last /
and change this:
cout<<"suma";
to:
cout<<suma;
+ 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;
}
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 = */