write a program in java to display all the buzz numbers in a range
Answers
Answered by
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
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
Social Sciences,
8 months ago
Social Sciences,
8 months ago
Art,
8 months ago
Math,
1 year ago
Science,
1 year ago
Physics,
1 year ago
Physics,
1 year ago