+0  
 
0
557
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+26388 
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

3 Online Users

avatar