Menu


.

Write a program to find that the number is Buzz number or not.

#include< iostream.h >

#include< conio.h >

void main()

{

clrscr();

int a,r;

cout<<"Enter any integer";

cin>>a;

r=a%10;

if(r==7 && a%7==0)

cout<<"It is a Buzz number";

else if(a%2==0)

cout<<"Even Number";

else

cout<<"It is neither Buzz nor even";

getch();

}




Enjoy our courses Today