Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
On Off
#include<iostream> using namespace std; int main() { for (int i = 1; i<=100; i++) { if(i%3 == 0 && i%5 == 0) { cout << "ONOFF" << endl ; } else if(i%3 == 0) { cout << "ON" << endl; } else if(i%5 == 0) { cout << "OFF" << endl; } else { cout << i <<endl; } } }
run
|
edit
|
history
|
help
0
PriorQ2
Gauss v0.1
integerDivision
How to access member function of a class using scope
Menu Combination Sum
map sort
StackQuiz
Stream11
PriQTel2
copy_if c++98