Write a program in python input any number and check if number is buzz number or not.
Note- A number is said to be Buzz Number if it ends with 7 or is divisible by 7. …0, 72 is neither divisible by 7 nor ends with 7 so it is not a Buzz Number
--------------------------------------------
Program :-
n=int(input("Enter any number : "))
if n%7==0 or n%10==7:
print(n, "is a Buzz Number")
else:
print(n, "is not a Buzz Number")
--------------------------------------------
Output :-
Enter any number : 70
70 is a Buzz Number
--------------------------------------------
Enter any number : 100
100 is not a Buzz Number
0 Comments