Search results
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window.
code hs 3.2.8 repeating message (cannot get the code to print more than once, for the number of necessary lines.) Line 12 should not end with a ";" Loops don't need a ";", they only need a " {" to signify the beginning of the body of the loop. (Also a "}" to close it.)
Contribute to leo-prad/CodeHS-Java-Answers development by creating an account on GitHub. Contribute to leo-prad/CodeHS-Java-Answers development by creating an account on GitHub. ... { message }} leo-prad / CodeHS-Java-Answers Public. forked from haonlywan/CodeHS-Java-APCSA. Notifications You must be signed in to change notification settings ...
This repository contains the solutions to the majority of CodeHS exercises for the Python programming language. However, it is an obligation that you complete all of the problems before using this database according to the CodeHS Terms of Use and Service - https://codehs.com/terms.
Think about how to alternate between two lines. The loop index can give you an idea. If it is odd, print line 1, if it is even, print line 2. You can use the modulo (remainder) function to determine if a number is even or odd.
To find out, you find i modulus 2. In case you don't know what modulus is, it returns the remainder of the division. Any even number that is divided by 2 will return a remainder of 0.
Problem Guides provide solutions to exercises on CodeHS. Each Problem Guide breaks down the motivation behind the problem, sample solutions, and common student questions and errors. Problem Guides are also printable.