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; } } system("pause"); }
run
|
edit
|
history
|
help
0
Round prices
UsingAlgorithm
Ineritance
test
snake logic complete c++
strict aliasing
test
TraceMarrix
t>0
C++ lesson