Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
Matrix
Teatime Snack
LRUCache
顺序表的实现——静态分配
ssss
СПКИ АП КЭП 2
Height of a binary tree
constexpr expirements
Dictionary
minmax
Please log in to post a comment.