Computer Science, asked by avijitbhattacharya, 11 months ago

write a program in java to display all the buzz numbers in a range

Answers

Answered by duttadeeptangsh
0
A buzz no. is one which either is divisible by 7 or ends with 7
class abc
{
void display(int start,int end)
{
for(i=start,i<=end;i++)
{
if(i%7==0 || i%10==7)
System.out.println(n);
}
}
}


Hope it helps
Similar questions