0
Is there any problem in this program?? Its not working plz tell em a beginner
#include <iostream> using namespace std; int main() { int a, b, c; cout << "Enter two numbers to add\n"; cin >> a >> b; c = a + b; cout <<"Sum of entered numbers = " << c <<; return 0; }
1 Réponse
+ 4
You forgot endl. Either add that in the last cout statement or just remove the last two <<.