Computer Science, asked by harshpraphul, 11 months ago

write to input 10 nos. in a array and print thr buzz nos. in the array​

Answers

Answered by Ananyamisra00
0

Answer:

import java.io.*;

class buzz

{

public static void main(String[]args)

{

int ar[]=new int[10];

int i;

InputStreamReader read=new InputStreamReader (System.in);

BufferedReader in=new BufferedReader (read);

for(i=1;i<=10;i++)

{

if(i%7==0||i%10==7)

{

System.out.println("it is a buzz no");

else

System.out.println("not a buzz no.");

}

}

}

Similar questions