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
BLOG
Log In
Sign Up
Control Flow Filter
joboc
4,070 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&> with std::remove_reference_t
By
joboc
55.1K
1
0
Extract words among spaces
By
joboc
16.8K
7
0
Apprendre le C++
By
yantra
42K
385
0
Using Pragma For Compile Optimization
By
LazyMammal
14.6K
27
0
ABOUT US
CAREERS
PRIVACY
FAQ
The #1 tech hiring platform
SCREENING
INTERVIEWING
ABOUT US
CAREERS
PRIVACY
FAQ
Facebook
YouTube
Twitter
LinkedIn
FR
EN