Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
on_off
#include<iostream> using namespace std; int main() { int num; cin>num; if(int i=0;i<=num; i++) {if(num%3==0) {if(num%5==0) cout<<"off" else cout<<"ON";} cout<<num;} else cout<<"worng number"; } return 0; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Samosa
basic observation leads to dp OPTIMIZATION from O(n^3) to O(n^2) !!! (sopj : AMBLE)
NonparaH
Dar
SD
palindrome
Simple Interest Calculator
Proyecto 1
Prime_Number_Cpp
Conjuntos - Contar caracteres únicos
Please log in to post a comment.