diff --git a/Array/Uno Number or Not.cpp b/Array/Uno Number or Not.cpp new file mode 100644 index 0000000..37b2154 --- /dev/null +++ b/Array/Uno Number or Not.cpp @@ -0,0 +1,17 @@ +#include +#include +using namespace std; +int main() +{ + int n=369; + int sum=0; + while(n>0) + { + sum=sum+n%10; + n=n/10; + } + if(sum==n) + cout<<"Uno Number"; + else + cout<<"Not Uno Number"; +}