Advertisement
CamiloCastilla

Untitled

Nov 29th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.35 KB | None | 0 0
  1. package com.company;
  2. import java.util.Scanner;
  3. public class Main {
  4.  
  5.     public static void main(String[] args) {
  6.         Scanner keyboard = new Scanner(System.in);
  7.         System.out.println("Count to:");
  8.         int count = keyboard.nextInt();
  9.         for (int i = 0; i <= count; i++) {
  10.             System.out.println(i + "");
  11.  
  12.         }
  13.  
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement