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
lab17feb22x4B.cpp
new
Memory_test
wealth of banks
Second program
Zscore
sorting using array and pointer
abhilash
Triangle
Vector+Memory_Adv_C++_Tutorial