0

Quick solution pleasssse

24th Apr 2018, 9:24 PM
Q Wpp
Q Wpp - avatar
8 Answers
+ 1
All methods should average at the same speed because the number of loops is known at compile time.
24th Apr 2018, 9:52 PM
non
+ 4
A faster solution would be to run it and see.
24th Apr 2018, 9:29 PM
John Wells
John Wells - avatar
+ 3
Did you have a main function around it? #include <iostream> using namespace std; int main() { int v=5; for(v=10;v<15;v=v+5) cout<<v; return 0; }
24th Apr 2018, 9:35 PM
John Wells
John Wells - avatar
0
int v=5; for(v=10;v<15;v=v+5) cout<<v;
24th Apr 2018, 9:24 PM
Q Wpp
Q Wpp - avatar
0
cout ???
24th Apr 2018, 9:25 PM
Q Wpp
Q Wpp - avatar
0
error (for)
24th Apr 2018, 9:30 PM
Q Wpp
Q Wpp - avatar
0
error
24th Apr 2018, 9:38 PM
Q Wpp
Q Wpp - avatar
0
compilation
24th Apr 2018, 9:40 PM
Q Wpp
Q Wpp - avatar