0
when I run the code and enter the value of 'a' a letter instead of showing the erroe it's showing the sum.!?
#include <iostream> using namespace std; int main() { int a,b; cout << "enter the value of 'a' \n "; cin >> a; cout << "enter the value of 'b' \n "; cin >> b; int sum = a+b; cout <<"The sum is: " << sum << endl; return 0; }
1 Odpowiedź
0
Thanks