Skip to content

Commit

Permalink
Create Uno Number or Not.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
vishnu9701 authored Aug 3, 2022
1 parent 0a11259 commit 88457c6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Array/Uno Number or Not.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include<iostream>
#include<math.h>
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";
}

0 comments on commit 88457c6

Please sign in to comment.