0

a=11,b=12, c=40 (a>100 & & b>3) out put of a c

How get answer to the question

29th Jul 2016, 12:37 PM
Lingaswamy
Lingaswamy - avatar
6 Réponses
+ 2
If you're saying int a = 11, int b = 12 and int C = 40, then asking if a is greater than 100 and b greater than 3 to print out the value of C, you'll never get it. A is 11 which is less than 100. You'll need to do 1 of 2 things. Instead of && use || which means or. b is 12 which is greater then 3 so would work in this case. Otherwise, make a larger than 100.
29th Jul 2016, 1:37 PM
James
James - avatar
+ 1
the ans must be c=40 since there is and condition and a fails in that
8th Aug 2016, 4:52 PM
Mr. Robot
Mr. Robot - avatar
0
so what is the output
31st Jul 2016, 8:16 PM
Stephen Ok Ogu
Stephen Ok Ogu - avatar
0
result 0
10th Aug 2016, 12:20 PM
srilekha
0
compile time error
14th Aug 2016, 4:25 PM
srilekha
0
11
19th Aug 2016, 4:33 AM
Marco