Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Gauge Smithee
- * Every Other Number
- * Mrs.Reagan
- */
- public class Program {
- public static void main(String[] args) {
- int age = 12;
- int [] number = {1, 2, 3, 4, 5, 6, 7, 8, 9};
- //Tells computer which number to print out
- int i = 0;
- while(i < 9) {
- System.out.println(number[i]);
- i = i + 2;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement