Wednesday, October 22, 2014

New to java need help please!!
















please help me figure this out i would highly appreciate it :)
















Write a java code that asks the user for an Integer and then counts down from that number to 0. Printing each number.
















For example:
















Enter an Integer: 5 (enter) <--- user hits the enter key















5















4















3















2















1















0
















import java.util.Scanner;
















public class Exam{















public static void main(String args[]){















Scanner in = new Scanner(System.in);































No comments:

Post a Comment