Buzz Number is a number which ends with digit 7 or is divisible by 7.
Example 1: 42 is divisible by 7. Hence it is a Buzz Number.
Example 2: 107 ends with 7. Hence it is a Buzz Number.
C
#include <stdio.h>
void main()
{
int n=0;
printf("Enter a number: ");
scanf("%d",&n);
if((n%10)==7||(n%7)==0)
{
printf("%d is a Buzz Number",n);
}
else
{
printf("%d is not a Buzz Number",n);
}
}C