diff --git a/buzznumber.java b/buzznumber.java new file mode 100644 index 0000000..00fa5d4 --- /dev/null +++ b/buzznumber.java @@ -0,0 +1,18 @@ +import java.util.*; +public class buzznumber +{ + public static void main(String args[]) + { + Scanner ob=new Scanner(System.in); + System.out.println("Enter the number to be checked."); + int num=ob.nextInt(); + if(num%10==7 || num%7==0) + { + System.out.println(num+" is a Buzz Number."); + } + else + { + System.out.println(num+" is not a Buzz Number."); + } + } +} \ No newline at end of file