Search results
This is for all of my answers to exercises in my Java CodeHS program. If you have any questions contact me on Reddit at u/Spryw1re. - ttwixted/-
Answers for all units of the APCS CodeHS course. Contribute to VapidStar/apcsa-codehs development by creating an account on GitHub.
Add your thoughts and get the conversation going. public class Odds { public static void main (String [] args) { // Your code goes here! for (int i = 1; i < 100; i += 2) System.out.println (i); } }
public class Odds { public static void main(String[] args) { // Your code goes here! for(int i = 1; i < 100; i += 2) System.out.println(i); } }
Study with Quizlet and memorize flashcards containing terms like 4.1.4: Do You Have a Dog?, 4.2.6: Can You Graduate?, 4.2.7: School's Out and more.
Study with Quizlet and memorize flashcards containing terms like 4.2.6 Print the Odds, 4.2.7 Repeat 100 Times, 4.2.8 Replace WHILE with FOR Loop and more.
public class Odds { public static void main(String[] args) { // Run this code first to see what is does. // Then replace the for loop with an equivalent while loop. int x = 1; while(x <= 10) { System.out.println(x); x = x+2; } } }