Employers: discover CodinGame for tech hiring
EVENTS
UPCOMING
PAST
SOLO
PUZZLES
CODE GOLF
OPTIMIZATION
MULTI
LEADERBOARDS
CLASH OF CODE
BOT PROGRAMMING
CODING ESCAPE
COMMUNITY
CONTRIBUTIONS
LEARN
DISCORD
FORUM
LIVE STREAMS
Log In
Sign Up
Control Flow Filter
joboc
4,236 views
Control Flow Filter
yourCode.txt
keywords.txt
ControlFlow.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
ENTER YOUR CODE HERE AND PRESS "Run"
For instance:
#include <iostream>
int main()
{
int n = 0;
for (int i = 0; i < 42; ++i)
{
if (i % 2 == 0)
{
n += i;
}
else
{
n *= i;
}
}
std::cout << n << '\n';
}
1
if
1
#include <algorithm>
Run
6
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io
Suggested playgrounds
Wrapper<int>
By
joboc
56K
2
0
Word Count in Code
By
joboc
6,319
19
0
Apprendre le C++
By
yantra
47.4K
420
0
Using Pragma For Compile Optimization
By
LazyMammal
16.8K
31
0
ABOUT US
CAREERS
PRIVACY
FAQ
BLOG
ABOUT US
CAREERS
PRIVACY
FAQ
BLOG
The #1 tech hiring platform
SCREENING
INTERVIEWING
Facebook
YouTube
Twitter
LinkedIn
FR
EN