CJCoding With Joseph
TitleTopicsAction
45
For Loop 1 to 10Write a program that prints the numbers from 1 to 10 using a for loop. Print all...
easy○ Not Started
Loops
Solve
46
While Loop 10 to 1Write a program that prints the numbers from 10 down to 1 using a while loop. Pr...
easy○ Not Started
Loops
Solve
47
Do-While 1 to 5Write a program that prints the numbers from 1 to 5 using a do-while loop. Print...
easy○ Not Started
Loops
Solve
48
Sum 1 to 100 (for)Write a program that calculates the sum of numbers from 1 to 100 using a for loo...
easy○ Not Started
Loops
Solve
49
Multiplication Table (while)Ask the user to enter a number, then print its multiplication table up to 10 usi...
easy○ Not Started
LoopsUser Input
Solve
50
Factorial with Do-While (input)Ask the user for a number, then calculate and print its factorial using a do-whi...
easy○ Not Started
LoopsUser Input
Solve
51
Skip Number 5 (continue)Print numbers from 1 to 10 using a for loop, skipping 5 with continue....
easy○ Not Started
Loops
Solve
52
Odd Numbers 1 to 10 (continue)Print only odd numbers from 1 to 10 using a for loop and continue. Use modulo (i...
easy○ Not Started
Loops
Solve
53
Break on Zero (while input)Keep asking for numbers in a while loop and break when the user enters 0. For ea...
easy○ Not Started
LoopsUser Input
Solve
54
Even Numbers 2 to 20 (for)Print even numbers from 2 to 20 using a for loop....
easy○ Not Started
Loops
Solve
55
Odd Numbers 1 to 19 (for)Print odd numbers from 1 to 19 using a for loop....
easy○ Not Started
Loops
Solve
56
Squares 1 to 5 (for)Print the squares of numbers from 1 to 5 using a for loop....
easy○ Not Started
Loops
Solve
57
Sum 1 to 50 (for)Compute the sum of numbers from 1 to 50 using a for loop and print 'Sum: 1275'....
easy○ Not Started
Loops
Solve
58
Multiplication Table of 4 (for)Print the multiplication table of 4 from 1 to 10 using a for loop....
easy○ Not Started
Loops
Solve
59
Repeat Star 5 Times (for)Print five '*' characters on one line using a for loop....
easy○ Not Started
Loops
Solve
60
Array Elements (for-each)Given an int array {2, 4, 6, 8}, print elements using a for-each loop on one lin...
easy○ Not Started
Loops
Solve
61
Skip Multiples of 3 (continue)Print numbers 1 to 10 but skip multiples of 3 using continue....
easy○ Not Started
Loops
Solve
62
Break at 5 (for)Print numbers starting at 0 using a for loop and break when i equals 5. Output s...
easy○ Not Started
Loops
Solve
63
Countdown 5 to 0 (for)Use a for loop to count down from 5 to 0....
easy○ Not Started
Loops
Solve
65
Sum of Evens 1..10 (for)Compute the sum of even numbers from 1 to 10 using a for loop and print 'Sum of ...
easy○ Not Started
Loops
Solve
66
Factorial of 5 (for)Calculate the factorial of 5 using a for loop....
easy○ Not Started
Loops
Solve
67
Print 1..N (for input)Read an integer N and print numbers from 1 to N using a for loop....
easy○ Not Started
LoopsUser Input
Solve
68
Multiples of 5 up to 50 (for)Print multiples of 5 up to 50 using a for loop....
easy○ Not Started
Loops
Solve
145
Count Zeros in an ArrayRead an integer n, then read n integers. Count how many of the values are exactl...
easy○ Not Started
ArraysLoops
Solve
288
Print Alphabet a to z (for)Use a `for` loop to print the lowercase alphabet from `a` to `z` all on one line...
easy○ Not Started
Loops
Solve
289
Sum of First N Numbers (input)Read a single integer `n` from standard input, then use a loop to add up the num...
easy○ Not Started
Loops
Solve
290
Count Digits in a Number (while)The variable `n` holds the value `4587`. Use a `while` loop to count how many di...
easy○ Not Started
Loops
Solve
291
Average of Array Elements (for-each)The array `nums` contains `{10, 20, 30, 40}`. Use a for-each loop to sum the ele...
easy○ Not Started
Loops
Solve
292
Maximum in Array (for)The array `nums` contains `{3, 9, 2, 7, 5}`. Use a `for` loop to find the larges...
easy○ Not Started
Loops
Solve
293
Minimum in Array (for)The array `nums` contains `{8, 3, 6, 1, 9}`. Use a `for` loop to find the smalle...
easy○ Not Started
Loops
Solve
294
Print Characters of a Word (for)The variable `word` holds the text `code`. Use a `for` loop to print each charac...
easy○ Not Started
Loops
Solve
295
Repeat a Word 3 Times (for)Use a `for` loop that runs exactly 3 times to print the word `Java` on its own l...
easy○ Not Started
Loops
Solve
296
Multiples of 7 up to 70 (for)Use a `for` loop to print every multiple of `7` from `7` up to and including `70...
easy○ Not Started
Loops
Solve
297
Sum of Squares 1 to 5 (for)Use a `for` loop to add up the squares of the numbers `1` through `5` (that is `...
easy○ Not Started
Loops
Solve
298
Product of Array Elements (for-each)The array `nums` contains `{1, 2, 3, 4}`. Use a for-each loop to multiply all th...
easy○ Not Started
Loops
Solve
299
Count Even Numbers in Array (for)The array `nums` contains `{4, 7, 10, 3, 8, 5}`. Use a loop to count how many el...
easy○ Not Started
Loops
Solve
64
3x5 Stars (nested for)Use nested for loops to print 3 rows of 5 '*' characters....
medium○ Not Started
Loops
Solve
147
Longest Word LengthRead an integer n, then read n words. Find and print the length of the longest w...
medium○ Not Started
ArraysLoops
Solve
300
Sum of Digits (while)The variable `n` holds `1234`. Use a `while` loop to add up its digits (`1 + 2 +...
medium○ Not Started
Loops
Solve
301
Reverse a Number (while)The variable `n` holds `1234`. Use a `while` loop to build its reverse (`4321`) ...
medium○ Not Started
Loops
Solve
302
Fibonacci First 10 (for)Use a `for` loop to print the first 10 Fibonacci numbers, each on its own line. ...
medium○ Not Started
Loops
Solve
303
Count Vowels in a String (for)The variable `s` holds the word `education`. Use a `for` loop to count how many ...
medium○ Not Started
Loops
Solve
304
FizzBuzz 1 to 15 (for)Use a `for` loop over the numbers `1` to `15`. For each number print `Fizz` if i...
medium○ Not Started
Loops
Solve
305
Reverse a String (for)The variable `s` holds the word `hello`. Use a `for` loop that walks the string ...
medium○ Not Started
Loops
Solve
306
Right Triangle of Stars (nested for)Use nested `for` loops to print a right triangle of `*` characters with `5` rows...
medium○ Not Started
Loops
Solve
307
Power Using a Loop (for)Compute `2` raised to the power `8` using a `for` loop (multiply `1` by `2` a to...
medium○ Not Started
Loops
Solve
308
Check Prime Number (for input)Read an integer `n` from standard input and decide whether it is prime. Print ex...
hard○ Not Started
Loops
Solve
309
GCD with While LoopCompute the greatest common divisor (GCD) of `48` and `36` using the Euclidean a...
hard○ Not Started
Loops
Solve
310
Number Pyramid (nested for)Use nested `for` loops to print `5` rows where row `i` prints the numbers `1` th...
hard○ Not Started
Loops
Solve
311
Collatz Steps (while)Starting from `n = 6`, count how many steps it takes to reach `1` using the Coll...
hard○ Not Started
Loops
Solve