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; }

19th Dec 2018, 9:16 AM
Aditya Rathore
Aditya Rathore - avatar
1 ответ
0
Thanks
19th Dec 2018, 9:29 AM
Aditya Rathore
Aditya Rathore - avatar