0
I NEED LITTLE HELP HERE PLS HELP
THE OUTPUT OF THE FOLLOWING CODE Ä°S : NO OUTPUT. WHY ? #include <iostream> using namespace std; int main() { int a; cin >> a; int b; cin >> b; int sum = a + b; if (sum > 100) { cout << sum; } return 0; }
4 Answers
+ 5
because the sum is <=100, so if statement won't run, so no cout.
Try inputting values whose sum > 100
+ 4
input
[PRESS ENTER]
input
+ 2
Guys Its my fault , I m not entering the input as to that they are together greather then 100 . :) they were combined less then 100 :) sorry for bothering you . but thank you all you re always here to help . so kind of you . thanks to jamie, meharban signg and manual