/// Name: Caelan Dorstad /// Period: 6 /// Program Name: count /// File Name: count.java /// Date Finished: 2/19/2016 import java.util.Scanner; public class count{ public static void main(String[] args){ Scanner keyboard = new Scanner(System.in); System.out.print("Count to: "); int num = keyboard.nextInt(); for ( int n = 0; n <= num; n++){ System.out.print(n + " "); } System.out.println(); } }