Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


partha karmakar
buzz no.
2 Answer(s)      a year and 5 months ago
Posted in : Java Beginners


buzz no. or not


Advertisement
View Answers

June 3, 2013 at 11:26 AM


import java.util.Scanner;

public class BuzzNumber {

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        System.out.println("Enter number:");
        int input = s.nextInt();
        int lastNumber = input % 10;
        if (lastNumber == 7 || input % 7 == 0) {
            System.out.println("Buzz Number");
        } else {
            System.out.println("Not a Buzz Number");
        }
    }
}

Output :

Enter number:
34
Not a Buzz Number


May 25, 2013 at 11:58 AM


A buzz number is a number that ends with 7 and can be divided by 7.



Related Tutorials/Questions & Answers:
buzz no.
buzz no.   buzz
buzz number
buzz number  buzz number
Advertisements
Reliability of iPhone 3G
Reliability of iPhone 3G       The iPhone has generated more than a fair amount of buzz ever since its launch and for good reasons also. The iPhone is a fairly reliable
Android Phones for 2009
Android Phones for 2009       While the first Android phone the T-Mobile G1 didn't create the same amount of buzz as the iPhone, the future does seem to be bright
SCJP Module-9 Question-1
. Compilation error 2. [Buzz,Buzz] 3. [Buzz] 4. Buzz Answer (3) Explanation... 'Buzz' is stored once in HashSet 'hs'
social bookmarking - Java Beginners
; "technorati-48x48.png", "Title" => "Technorati" ), "yahoo buzz...", "Image" => "yahoo-buzz-48x48.png", "Title" => "Yahoo Buzz
Google Penguin 2.0: Real SEO Strategy to avoid Penalty
Google has just released the latest update of Google Penguin as Penguin 2.0, which has created a buzz among the SEO and webmasters due to its upgraded algorithmic update that is likely to create more problems for the websites counting
VoIP Companies
, VoIP 'buzz' was low as the core technology behind the cheaper rates
Change Is Constant In SEO Article Writing
marketing for being able to match up with today's buzz words. You can never tell when
Writing Articles to Increase Your Page Ranking ? Best Online SEO Tips by SEO Company from India
buzz words. It may happen that after optimizing your website for increasing
Risks involved in Ecommerce for Auctions
Risks involved in Ecommerce for Auctions E-commerce, E-commerce, E-commerce!!! This is the recent buzz of today’s world. Both customers and businessmen are more interested in dealing virtually. Businessmen are choosing to sell
Google Android
Android phone the T-Mobile G1 didn't create the same amount of buzz
What is Google Penguin?
created a buzz among the SEO's and Webmaster as Google is coming up with more
VoIP Products
, the buzz at the 2006's VoiceCon Fall conference on Aug. 21 will be about
Crystal Reports for Eclipse
downloads. I am here today to keep the buzz alive. Not only does the launch
iPhone
amount of buzz ever since its launch and for good reasons also. The iPhone
Java XML Books
; Java and XML, Second Edition While the XML "buzz" still
XMLTutorials
is geared toward newcomers who have heard the buzz, but don't know what all
Software Development, Software Services Company
Buzz Google Earth Google Go Google Wave GPGPU HP
Open Source Download
Buzz.     Netscape Communicator Open Source Code White
Open Source SQL
can be counted on the finger of one hand. Don't be surprised, though, if buzz
Advertisements
 

 

 

DMCA.com