Employers: discover CodinGame for tech hiring
CodinGame_Logo_Final_Full
ACTIVITIES
1
PRACTICE
COMPETE
1
LEARN
COMMUNITY
CONTRIBUTIONS
LIVE STREAMS
DISCORD
FORUMS
BLOG
Get a job
1
Log In
Sign Up
Control Flow Filter
joboc
2,985 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
0
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
Extract words among spaces
By
joboc
13.8K
6
1
Wrapper<int&> with std::remove_reference_t
By
joboc
39.1K
1
0
Apprendre le C++
By
yantra
14.5K
169
5
Reader, faire une application pour Omega sur Numworks
By
gabriel79
4,980
3
10
CodinGame - Home
ABOUT US
CAREERS
PRIVACY
FAQ
CodinGame - Work
The #1 tech hiring platform
SCREENING
SOURCING
RETAIN
ABOUT US
CAREERS
PRIVACY
FAQ
Facebook
YouTube
Twitter
LinkedIn
FR
EN
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants
Keyboard Shortcuts:
?
Show / hide this help menu
×