From 88457c63abb3567e46aafc8cdfa93dcec0967701 Mon Sep 17 00:00:00 2001 From: Vishnu Pandey <92036251+vishnu9701@users.noreply.github.com> Date: Wed, 3 Aug 2022 12:25:11 +0530 Subject: [PATCH] Create Uno Number or Not.cpp --- Array/Uno Number or Not.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Array/Uno Number or Not.cpp 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"; +}