Code Below:


import java.util.*;
public class buzz
{
    public static void main()
    {
        Scanner s=new Scanner(System.in);
        System.out.println("enter a no.");
        int n=s.nextInt();
        if (n%7==0 || n%10==7)
        System.out.println(n+" is a buzz no.");
        else
        System.out.println(n+" is not a buzz no.");
    }
}