CJCoding With Joseph
TitleTopicsAction
104
For Loop 1 to 10Use a `for` loop to print the numbers 1 to 10 on one line, separated by single s...
easy○ Not Started
Loops
Solve
105
While Loop 10 to 1Use a `while` loop to print 10 down to 1 on one line, separated by single spaces...
easy○ Not Started
Loops
Solve
106
Do-While 1 to 5Use a `do-while` loop to print 1 to 5 on one line, separated by single spaces. ...
easy○ Not Started
Loops
Solve
107
Print Five StarsUse a `for` loop to print five `*` characters on one line. *****...
easy○ Not Started
Loops
Solve
108
Even Numbers 2 to 20Use a `for` loop to print the even numbers from 2 to 20, separated by single spa...
easy○ Not Started
Loops
Solve
109
Odd Numbers 1 to 19Use a `for` loop to print the odd numbers from 1 to 19, separated by single spac...
easy○ Not Started
Loops
Solve
110
Countdown 5 to 0Use a `for` loop to count down from 5 to 0 on one line, separated by single spac...
easy○ Not Started
Loops
Solve
111
Multiples of 5 up to 50Use a `for` loop to print the multiples of 5 from 5 to 50, separated by single s...
easy○ Not Started
Loops
Solve
112
Squares 1 to 5Use a `for` loop to print the squares of 1 to 5, separated by single spaces. 1 ...
easy○ Not Started
Loops
Solve
113
Sum 1 to 100Use a `for` loop to add the numbers 1 to 100 and print the total in this format:...
easy○ Not Started
Loops
Solve
114
Sum of Evens 1 to 10Use a `for` loop to add only the even numbers from 1 to 10 and print: Sum of ev...
easy○ Not Started
Loops
Solve
115
Factorial of 5Use a `for` loop to compute the factorial of 5 (5 x 4 x 3 x 2 x 1) and print it:...
easy○ Not Started
Loops
Solve
116
Multiplication Table of 4Use a `for` loop to print the multiplication table of 4 from 1 to 10, one line e...
easy○ Not Started
Loops
Solve
117
Print 1 to NRead an integer N, then use a `for` loop to print 1 to N on one line separated b...
easy○ Not Started
Loops
Solve
118
Sum 1 to NRead an integer N, then use a `for` loop to add 1 to N and print: Sum: [total] ...
easy○ Not Started
Loops
Solve
119
foreach Over an ArrayAn int array `{2, 4, 6, 8}` is given. Use a `foreach` loop to print each element...
easy○ Not Started
Loops
Solve
327
Sum of Odd Numbers 1 to 10Use a loop to add the odd numbers from 1 to 9 (`1 + 3 + 5 + 7 + 9`) and print th...
easy○ Not Started
Loops
Solve
328
Powers of Two up to 1024Print each power of two starting at 1 and doubling until you reach 1024, one val...
easy○ Not Started
Loops
Solve
329
Print the AlphabetLoop over the letters `a` through `z` and print them all on a single line, then ...
easy○ Not Started
Loops
Solve
330
Multiples of 3 up to 30Print every multiple of 3 from 3 up to and including 30, one per line: 3 6 9 12...
easy○ Not Started
Loops
Solve
331
Sum of Array ElementsGiven the array `{ 5, 10, 15, 20, 25 }`, use a `foreach` loop to add up every el...
easy○ Not Started
Loops
Solve
332
Print a String Character by CharacterLoop over the string `"Code"` and print each character on its own line: C o d e...
easy○ Not Started
Loops
Solve
333
Count Down by Twos from 10Count down from 10 to 0, stepping by 2 each time, printing each value on its own...
easy○ Not Started
Loops
Solve
334
Sum of Squares 1 to 5Add up the squares of the numbers 1 through 5 (`1 + 4 + 9 + 16 + 25`) and print ...
easy○ Not Started
Loops
Solve
335
Repeat a Word Three TimesUse a loop to print the word `Hello` exactly three times, once per line: Hello ...
easy○ Not Started
Loops
Solve
336
Product of Array ElementsGiven the array `{ 1, 2, 3, 4, 5 }`, multiply all elements together with a loop ...
easy○ Not Started
Loops
Solve
337
Numbers Divisible by 3 and 5Loop from 1 to 100 and print only the numbers divisible by BOTH 3 and 5, one per...
easy○ Not Started
Loops
Solve
338
Largest Element in an ArrayGiven the array `{ 3, 7, 2, 9, 4 }`, use a loop to find the largest value and pr...
easy○ Not Started
Loops
Solve
339
Skip Multiples of 3 with continueLoop from 1 to 10, but use `continue` to skip every multiple of 3. Print the rem...
easy○ Not Started
Loops
Solve
120
Multiplication Table of NRead an integer N and print its multiplication table from 1 to 10, one line each...
medium○ Not Started
Loops
Solve
121
Factorial of NRead an integer N (N >= 1) and print N! (the product of 1 to N). Use a `long` so...
medium○ Not Started
Loops
Solve
122
Count the DigitsRead a positive integer N and use a `while` loop to count how many digits it has...
medium○ Not Started
Loops
Solve
123
Power with a LoopRead a base and an exponent (each on its own line). Use a loop to compute base r...
medium○ Not Started
Loops
Solve
124
Right Triangle of StarsRead an integer N and use nested loops to print a right triangle with N rows, wh...
medium○ Not Started
Loops
Solve
125
Count Even and OddRead an integer N, then loop from 1 to N counting evens and odds. Print on two l...
medium○ Not Started
Loops
Solve
340
Reverse a NumberRead a positive integer from input, then use a loop to reverse its digits and pr...
medium○ Not Started
Loops
Solve
341
Sum of a Number's DigitsRead a positive integer from input and use a loop to add up its digits, then pri...
medium○ Not Started
Loops
Solve
342
Count Vowels in a StringRead a line of text from input and use a loop to count how many vowels (`a`, `e`...
medium○ Not Started
Loops
Solve
343
FizzBuzz 1 to 15Loop from 1 to 15. Print `FizzBuzz` if the number is divisible by both 3 and 5, ...
medium○ Not Started
Loops
Solve
344
Reverse a String with a LoopRead a line of text and use a loop to build and print the reversed string. For e...
medium○ Not Started
Loops
Solve
345
Count Occurrences of a CharacterRead two lines of input: the first is a word, the second is a single character. ...
medium○ Not Started
Loops
Solve
346
Rectangle of StarsRead two numbers from input: the number of rows, then the number of columns. Use...
medium○ Not Started
Loops
Solve
347
Inverted Triangle of StarsUse nested loops to print an inverted triangle of stars: the first row has 5 sta...
medium○ Not Started
Loops
Solve
348
Number TriangleUse nested loops to print a triangle where row `i` shows the numbers `1` through...
medium○ Not Started
Loops
Solve
126
Fibonacci First N TermsRead an integer N (N >= 1) and print the first N Fibonacci numbers on one line s...
hard○ Not Started
Loops
Solve
127
Primes up to NRead an integer N and print every prime number from 2 to N on one line separated...
hard○ Not Started
Loops
Solve
128
Multiplication GridRead an integer N and print an N x N multiplication grid. The value in row r, co...
hard○ Not Started
Loops
Solve
349
Greatest Common Divisor with a LoopRead two positive integers (one per line) and use a loop (the Euclidean algorith...
hard○ Not Started
Loops
Solve
350
Collatz Step CountRead a positive integer `n`. Repeatedly apply the Collatz rule (if `n` is even, ...
hard○ Not Started
Loops
Solve
351
Palindrome Number CheckRead a positive integer. Use a loop to reverse its digits, then print `Yes` if t...
hard○ Not Started
Loops
Solve