Programming Examples

C program to check number is buzz number or not


Write a C program which accept a integer number form user and check number is buzz number or not.

Solution

 #include<stdio.h>
 int main()
 {
 	int num;
 	printf("Enter any integer number for check buzz or not");
 	scanf("%d",&num);
 	if(num%10==7||num%7==0)
 		printf("%d is a Buzz number",num);
 	else
 		printf("%d is a Buzz not a number",num);
 	return 0;
 }
Output

Enter any integer number for check buzz or not67

67 is a Buzz number

Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad