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

CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials 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 Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz