0

What is the output?

int x=1; for(int i=3;i>5;i++){ x+=i; } cout<<x;

11th Jul 2016, 9:26 AM
Sarthak Saxena
Sarthak Saxena - avatar
4 Respostas
+ 3
1. cuz, The loop will not process the statement
11th Jul 2016, 9:57 AM
sakje coookie
sakje coookie - avatar
+ 1
1
11th Jul 2016, 9:47 AM
Zhengjin Fang
Zhengjin Fang - avatar
0
I think it was only "<" at the for sintax. The solution is 1+3+4=8.
11th Jul 2016, 10:00 AM
Paula Ariton
Paula Ariton - avatar
0
1
11th Jul 2016, 5:15 PM
Navanee
Navanee - avatar