Tuesday, February 14, 2012

BlueJ Program On Buzz Number Checking


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();
}
}

Download eBook on BlueJ 

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.


Related PostBlueJ Programs on Number

10 comments:

  1. Dear Sir,
    Kindly post some of the expected questions for ISC computer practical exams 2012 for practice.

    ReplyDelete
  2. can u gv me d URL of solved 2004 paper????

    ReplyDelete
  3. Sir can you please tell if a date related and a 2D array related program is important for the ISC Computer practical exams tomorrow..?

    ReplyDelete
  4. Really thank you sir it helped me

    ReplyDelete
  5. Sir can you tell me how to find GCD of two number .

    ReplyDelete
    Replies
    1. Check in my site and you will get the program

      Delete

Subscribe via email

Enter your email address:

Delivered by FeedBurner