Buzz number is such a number
which ios either completely divisible by 7 or extreme right side digit of the
number is 7. Here is the bluej program on buzz number.
import java.io.*;
class Max
{
BufferedReader br=new
BufferedReader(new InputStreamReader(System.in));
int a;
public void show()throws
Exception
{
System.out.println("Enter
the number:");
a=Integer.parseInt(br.readLine());
if(a%10==7 || a%7==0)
System.out.println("Entered
number is a Buzz number.");
else
System.out.println("Entered
number is not a Buzz number.");
}
public static void main(String
args[])throws Exception
{
Max ob=new Max();
ob.show();
}
}
Sample output:
Enter the number:
37
Entered number is a Buzz number.
Enter the number:
21
Entered number is a Buzz number.
Enter the number:
123
Entered number is not a Buzz
number.
Dear Sir,
ReplyDeleteKindly post some of the expected questions for ISC computer practical exams 2012 for practice.
Please follow the previous posts.
Deletecan u gv me d URL of solved 2004 paper????
ReplyDeletecan you send me the question paper?
DeleteSir can you please tell if a date related and a 2D array related program is important for the ISC Computer practical exams tomorrow..?
ReplyDeleteYou can expect.
DeleteReally thank you sir it helped me
ReplyDeleteWelcome.
DeleteSir can you tell me how to find GCD of two number .
ReplyDeleteCheck in my site and you will get the program
Delete