Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
finding counting multiple no that became a no
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
#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; }
g++
256
Show compiler warnings
[
+
] Compiler args
[
-
]
Show input
Compilation time: 1.25 sec, absolute running time: 0.14 sec, cpu time: 0.01 sec, memory peak: 5 Mb, absolute service time: 1,52 sec
edit mode
|
history
|
discussion
Enter the no: Entered no: 256 is multiple of: 2 2 2 2 2 2 2 2