Loading [MathJax]/jax/output/SVG/config.js
 
+0  
 
0
593
1
avatar

Based on input of -6, 3 and 5 for a, b, and c respectively, what will be displayed?

int a, b, c ;

cin>> a >>b>>c;

if ((a+b) > ++c) cout << a+b ;

else if (a+c > b) cout << a+c;

else if ( b+c < ++a )

cout << b+c;

else cout << a+b+c ;

 Oct 5, 2016
 #1
avatar+26396 
0

Based on input of -6, 3 and 5 for a, b, and c respectively, what will be displayed?
 

 

 

It will be displayed: a + b + c = 4

 

laugh

 Oct 6, 2016

1 Online Users

avatar