24th May 2018, 11:00 AM
TANMAYA MOHAPATRA
TANMAYA MOHAPATRA - avatar
7 odpowiedzi
+ 5
should be: cin>>a>>b>>c>>d>>e; The comma allows multiple expression to be evalulated mainly used here: for (int i=0, j=5; i<6; i++,j--) which counts i from 0 to 5 while j goes from 5 to 0.
24th May 2018, 11:32 AM
John Wells
John Wells - avatar
+ 2
thanks sir
24th May 2018, 11:27 AM
TANMAYA MOHAPATRA
TANMAYA MOHAPATRA - avatar
24th May 2018, 11:28 AM
TANMAYA MOHAPATRA
TANMAYA MOHAPATRA - avatar
+ 2
I think this is corrected now
24th May 2018, 11:28 AM
TANMAYA MOHAPATRA
TANMAYA MOHAPATRA - avatar
24th May 2018, 11:19 AM
TANMAYA MOHAPATRA
TANMAYA MOHAPATRA - avatar
+ 1
sorry for previous inconvenience
24th May 2018, 11:21 AM
TANMAYA MOHAPATRA
TANMAYA MOHAPATRA - avatar
+ 1
OK. I suspect the problem is here. 8: cin>>a,b,c,d,e; First "cin >> a" is done. Because the priority of ">>" is higher than ",". Then b, c, d and e are not initialized so it doesn't show you the expected result.
24th May 2018, 11:25 AM
Disvolviĝo;
Disvolviĝo; - avatar