C++ Online Compiler & Playground
HTML/CSS/JavaScript
HTML
CSS
Javascript
C++
C
PHP
Java
Python
Swift
C#
Ruby
Node.JS
Kotlin
jQuery
Go
R
TypeScript
Start C++ Course
Register
can.we.avoid.globals
0
Author: Ketan Lalcheta
Dark
Public
Save
CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//Requirement :
/*
my cycle should get called for doStuff with value
1 to 6
then it should repeat again with 1 to 6
expected output:
1
hi
2
hi
3
hi
4
hi
5
hi
6
hi
1
hi
2
hi
3
hi
4
OUTPUT