+ 1
I made this code in C++ a few years ago, can someone please tell me why it doesn't work? I remember that it worked
Int a; Int b; Int sum; Cout << âenter a numberâ; Cin = a; Cout << âenter another number=â; Cin = b; Cout << sum = a + b; Return 0;
2 RĂ©ponses
+ 3
change it to:
int a;
int b;
int sum;
cout << âenter a numberâ;
cin >> a;
cout << âenter another number=â;
cin >> b;
sum = a + b;
cout << sum;
return 0;
+ 1
Thank you John