Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
on_off
//g++ 5.4.0 #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%5==0) { cout<<"Off"<<endl; } else if (i%3==0) { cout<<"On"<<endl; } else { cout << i <<endl; } } }
run
|
edit
|
history
|
help
0
as
TwoMax
Functions-Part I
Graph Theory 2
cache 内存消耗
CPPTemplate
Get smallest dividers
ttt
test111
matrix