Share on Google+Share on Google+

partha karmakar
buzz no.
2 Answer(s)      3 years and 10 months ago
Posted in : Java Beginners

buzz no. or not

Ads

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
Java Training Institute - Creating Ace Programmers
development may buzz on +91 9971440022 or email at [email protected] for any type
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
9 Attributes Common in Most Successful Apps
and technology will create a proper amount of buzz. Press release and hitting up
The Top Languages to Be Preferred by Programmers in 2017
buzz. Apart from these top 10 probables in the race for most popular programming languages, there are many more which have managed to create substantial buzz
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
Features and Benefits of Apache Spark
Features and Benefits of Apache Spark Suddenly Apache Spark became the buzzword for people in Big Data space. Why it is so? Why there is so much buzz on this new data computing technology? Being a person in Big Data analytics business
Jharkhand - A Tour in the Lap of Unexplored Diversity
beauty, which offers great relief from the buzz of the outer world. Some tourist
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
Tutorials   
Java Spring Hibernate Struts Training What does core Java include? java What are some way to learn Java quickly? Is it required to learn Java before learning Java Script? Is it necessary to learn java script before learning PHP? Are HTML5 and Java Script boosts Java career? Is Java object oriented? Fingerprint application with Java Uninstall Oracle Virtual Box JSON to HashMap Free Java online Training I want example of Control Statement in Java ANSI Color Codes with Python Create a Program that Calculates Input What is difference between JDK,JRE and JVM? How to see ubuntu version on server? How to get Page Source in Selenium (WebDriver) using Java? The path to the driver executable must be set by the webdriver.gecko.driver system property parse data from a link in java Java Program Qns using BlueJ How to fix HAX Kernel Module Is Not Installed error? Installing Audacity Looking for code Logic to check track changes & Coments in MSWord, MSWordx, MSExcel, MSExcelx is ON/OFF Installing JDK on Mac SAX Parser exception ERROR 601 (42P00): Syntax error. Encountered Thread java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory How to install Ubuntu 16.04 LTS? HttpServletRequest cannot be resolved to a type in eclipse - Solved Unhandled event loop exception GC overhead limit exceeded Spring Data jpa with apache phoenix Caused by: java.lang.IllegalArgumentException: Not a host:port pair: PBUF o.a.h.h.z.RecoverableZooKeeper - Possibly transient ZooKeeper, quorum= com.thinkaurelius.titan.diskstorage.hbase.HBaseStoreManager class not found com.thinkaurelius.titan.diskstorage.hbase.HBaseStoreManager not found How to download and install Java 8 on Windows? How to uninstall JDK 7? How to install gtk-doc-tools package in Ubuntu? How to install Oracle JDK 8 on Ubuntu? ejabberd_ctl.beam not found - Solved How to convert date to UTC format in Java? How to install autoconf, automake and libtool in Ubuntu 15.10? How to convert current date to mm dd yyyy format in Java? How to convert current date to dd mm yyyy format in Java? How to stop window closing in "internalFrameClosing" event. How to find list of all index in Neo4j? neo4j-server.properties file location SASLError using PLAIN: not-authorized how to convert war file into .exe file using java code

Ads

 
Advertisement null

Ads