+ 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 Respuestas
+ 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