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 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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;

12th Dec 2017, 10:14 PM
Swaghetti Prime
Swaghetti Prime - avatar
2 Answers
+ 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;
12th Dec 2017, 10:26 PM
John Wells
John Wells - avatar
+ 1
Thank you John
15th Dec 2017, 4:32 PM
Swaghetti Prime
Swaghetti Prime - avatar