Search results
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.)
23 lis 2021 · The `printMessage` method uses a for loop to iterate `numlines` times. Inside the loop, it prints the values of `lineOne` and `lineTwo` on separate lines using `System.out.println`. The loop ensures that these lines are repeated as many times as specified by the value of `numlines`. For example, if `numlines` is 5, the output will be: ``` Karel ...
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.
Bezpłatna usługa Google, umożliwiająca szybkie tłumaczenie słów, zwrotów i stron internetowych w języku angielskim i ponad 100 innych językach.
Codes to pass Unit 3 in CodeHS. Contribute to bwingdwing/CodeHS_Methods development by creating an account on GitHub.
My class uses CodeHS for our lessons and lesson 3.2.8 asks for a repeating message code. My code runs perfectly and does what is told but it still won’t accept it. Can somebody help?
15 lis 2021 · The code HS 3.2.8 refers to a program that displays a repeating message. This can be achieved using loops in a programming language like Python. Here's an example of how you can write a code to display a message multiple times: message = 'Hello, world!' for i in range(5): print(message)