CJCoding With Joseph
15free / daySign inCreate account
TitleOpen
194
For Loop 1 to 10Use a for loop to print the numbers from 1 to 10 on one line, separated by single spaces.
easyNot startedSolve
195
While Loop 10 Down to 1Use a while loop to print the numbers from 10 down to 1 on one line, separated by single spaces.
easyNot startedSolve
196
Do-While 1 to 5Use a do-while loop to print the numbers from 1 to 5 on one line, separated by single spaces.
easyNot startedSolve
197
Print Five StarsUse a for loop to print exactly five '' characters on one line.
easyNot startedSolve
198
Even Numbers 2 to 20Use a for loop to print the even numbers from 2 to 20 on one line, separated by single spaces.
easyNot startedSolve
199
Odd Numbers 1 to 19Use a for loop to print the odd numbers from 1 to 19 on one line, separated by single spaces.
easyNot startedSolve
200
Countdown 5 to 0Use a for loop to count down from 5 to 0 on one line, separated by single spaces.
easyNot startedSolve
201
Multiples of 5 up to 50Use a for loop to print the multiples of 5 from 5 up to 50 on one line, separated by single spaces.
easyNot startedSolve
202
Squares 1 to 5Use a for loop to print the squares of the numbers 1 to 5 on one line, separated by single spaces.
easyNot startedSolve
203
Sum 1 to 100Use a for loop to add up all the numbers from 1 to 100, then print the total in the exact format shown in Expected Output.
easyNot startedSolve
204
Sum of Evens 1 to 10Use a for loop to add up only the even numbers from 1 to 10, then print the total in the exact format shown in Expected Output.
easyNot startedSolve
205
Factorial of 5Use a for loop to calculate the factorial of 5 (5 x 4 x 3 x 2 x 1), then print it in the exact format shown in Expected Output.
easyNot startedSolve
206
Multiplication Table of 4Use a for loop to print the multiplication table of 4, from 1 to 10.
easyNot startedSolve
207
Print 1 to NRead an integer N, then use a for loop to print the numbers from 1 to N on one line, separated by single spaces.
easyNot startedSolve
208
Sum 1 to NRead an integer N, then use a for loop to add up all the numbers from 1 to N.
easyNot startedSolve
318
Print Letters A to ZUse a loop to print the uppercase letters A through Z on a single line with no spaces, then a newline.
easyNot startedSolve
319
Sum of Odd Numbers 1 to 9Use a loop to add the odd numbers 1, 3, 5, 7, 9 and print the total.
easyNot startedSolve
320
Print Multiples of 3 up to 30Use a loop to print every multiple of 3 from 3 up to and including 30, one per line.
easyNot startedSolve
321
Cubes 1 to 5Use a loop to print the cube (nnn) of each number from 1 to 5, one per line.
easyNot startedSolve
322
Powers of 2 up to 128Use a loop to print the powers of 2 starting at 1, doubling each step, up to and including 128, one per line.
easyNot startedSolve
323
Sum of Squares 1 to 5Use a loop to add the squares of the numbers 1 to 5 (1 + 4 + 9 + 16 + 25) and print the total.
easyNot startedSolve
324
Even Numbers 20 Down to 2Use a loop to print the even numbers from 20 down to 2, one per line, counting downward.
easyNot startedSolve
325
Multiplication Table of 7Use a loop to print the multiplication table of 7 from 1 to 10 in the format 7 x n = result, one per line.
easyNot startedSolve
326
Repeat a Word 4 TimesUse a loop to print the word Hello on 4 separate lines.
easyNot startedSolve
327
Average of 1 to 10Use a loop to sum the numbers 1 to 10, then print their average with exactly 2 decimal places.
easyNot startedSolve
328
Numbers 1 to 20 on One LineUse a loop to print the numbers 1 to 20 on a single line separated by single spaces, with no trailing space, then a newline.
easyNot startedSolve
329
Count Down by Twos 10 to 0Use a loop to print numbers from 10 down to 0, decreasing by 2 each step, one per line.
easyNot startedSolve
330
Number and Its Square 1 to 5Use a loop to print each number from 1 to 5 together with its square, separated by a single space, one pair per line.
easyNot startedSolve
209
Multiplication Table of NRead an integer N, then print its multiplication table from 1 to 10.
mediumNot startedSolve
210
Factorial of NRead an integer N (assume N >= 1), then use a loop to compute N!
mediumNot startedSolve
211
Count the DigitsRead a positive integer N, then use a while loop to count how many digits it has.
mediumNot startedSolve
212
Sum of DigitsRead a positive integer N, then use a while loop to add up its digits.
mediumNot startedSolve
213
Power with a LoopRead two integers, a base and an exponent (base first).
mediumNot startedSolve
214
Right Triangle of StarsRead an integer N, then use nested loops to print a right triangle of stars with N rows.
mediumNot startedSolve
215
Count Even and Odd in a RangeRead an integer N, then loop from 1 to N counting how many numbers are even and how many are odd.
mediumNot startedSolve
331
Sum of Numbers from A to BRead two integers a and b from input (with a <= b).
mediumNot startedSolve
332
Sum of Odd Numbers up to NRead an integer N from input.
mediumNot startedSolve
333
Reverse a NumberRead a positive integer from input and use a loop to print its digits reversed, followed by a newline.
mediumNot startedSolve
334
Count Vowels in a WordRead a single word (no spaces) from input and use a loop to count how many vowels it contains.
mediumNot startedSolve
335
FizzBuzz 1 to NRead an integer N from input.
mediumNot startedSolve
336
Largest Digit in a NumberRead a positive integer from input and use a loop to find its largest digit.
mediumNot startedSolve
337
Sum of Squares up to NRead an integer N from input.
mediumNot startedSolve
338
Inverted Right Triangle of StarsRead an integer N from input.
mediumNot startedSolve
216
Fibonacci First N TermsRead an integer N (N >= 1), then print the first N terms of the Fibonacci sequence on one line, separated by single spaces.
hardNot startedSolve
217
Print Primes up to NRead an integer N, then print every prime number from 2 up to and including N, on one line separated by single spaces.
hardNot startedSolve
218
Multiplication GridRead an integer N, then print an N x N multiplication grid.
hardNot startedSolve
339
Number PyramidRead an integer N from input.
hardNot startedSolve
340
GCD with a LoopRead two positive integers a and b from input.
hardNot startedSolve
341
Binary Representation of a NumberRead a positive integer from input and use a loop to print its binary (base-2) representation, followed by a newline.
hardNot startedSolve
342
Collatz StepsRead a positive integer from input.
hardNot startedSolve