Advertisement
Gauge1417

Untitled

Mar 4th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. /* Gauge Smithee
  2. * Every Other Number
  3. * Mrs.Reagan
  4. */
  5. public class Program {
  6.  
  7. public static void main(String[] args) {
  8. int age = 12;
  9. int [] number = {1, 2, 3, 4, 5, 6, 7, 8, 9};
  10.  
  11. //Tells computer which number to print out
  12. int i = 0;
  13. while(i < 9) {
  14. System.out.println(number[i]);
  15. i = i + 2;
  16. }
  17.  
  18. }
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement