Program to Check If a Number is Buzz number or not
Buzz Number CodeWithVed |
Steps:-
Program:-
class Buzz
{
public static void main(String[] args)
{
System.out.println("Enter the value");
int n1=new java.util.Scanner(System.in).nextInt();
int num;
num=n1;
if (num % 10 == 7 || num % 7 == 0)
{
System.out.println(n1 + " is a Buzz number ");
}
else
{
System.out.println(n1 + " is a not Buzz number");
}
}
}
For Proper Understanding Watch the Video :-
Thanks;)
All the Best :)
Keep Learning:)
Study:)
No comments:
Post a Comment