Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
finding counting multiple no that became a no
#include <bits/stdc++.h> using namespace std; int main() { int l; cout<<"Enter the no:\n\n"; cin>>l; cout<<"Entered no: "<<l; int n=l; cout<<" is multiple of: "<<endl<<endl; if(n>1) { while(n>=1) { int j; for(j=2;j<=l;j++) { if(n%j==0){ cout<<j<<" "; break; }} n=n/j; } } else cout<<n; return 0; }
run
|
edit
|
history
|
help
1
ForwardListString2
Dar
Compatibilità
Graph Theory
Przesylka
ShoppingList
GRAPH DFS & BFS
Hello World C++ - minimal
homework
Test 14(2020)