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

9th Dec 2017, 5:32 PM
GĂŒltekin Eroğlu
GĂŒltekin Eroğlu - avatar
3 Answers
+ 5
because the sum is <=100, so if statement won't run, so no cout. Try inputting values whose sum > 100
9th Dec 2017, 5:37 PM
Meharban Singh
Meharban Singh - avatar
+ 4
input [PRESS ENTER] input
9th Dec 2017, 5:40 PM
Manual
Manual - avatar
+ 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
9th Dec 2017, 5:52 PM
GĂŒltekin Eroğlu
GĂŒltekin Eroğlu - avatar