CJCoding With Joseph
15free / daySign inCreate account
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....
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 the exact fo...
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 the output ...
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
267
Count to TenWrite a program that uses a for loop to print the whole numbers from 1 to 10. Ea...
easy○ Not Started
Loops
Solve
268
Sum From 1 to 100Use a loop to add together every whole number from 1 to 100 (that is, 1 + 2 + 3 ...
easy○ Not Started
Loops
Solve
269
Even Numbers to 20Print all of the even numbers from 2 up to and including 20, each on its own lin...
easy○ Not Started
Loops
Solve
270
Seven Times TablePrint the 7 times table, from 7 x 1 = 7 all the way down to 7 x 10 = 70, with on...
easy○ Not Started
Loops
Solve
271
Rocket CountdownUse a while loop to count down from 5 to 1, printing each number on its own line...
easy○ Not Started
Loops
Solve
272
Total the PricesAn array already holds a short list of prices: 4, 8, 15, 16, 23, and 42. Use a f...
easy○ Not Started
Loops
Solve
273
Keep DoublingStarting from 1, keep doubling a value (1, 2, 4, 8, and so on) and print each re...
easy○ Not Started
Loops
Solve
417
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
418
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
419
Print the AlphabetLoop over the letters `a` through `z` and print them all on a single line, then ...
easy○ Not Started
Loops
Solve
420
Multiples of 3 up to 30Print every multiple of 3 from 3 up to and including 30, one per line (see Expec...
easy○ Not Started
Loops
Solve
421
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
422
Print a String Character by CharacterLoop over the string `"Code"` and print each character on its own line (see Expe...
easy○ Not Started
Loops
Solve
423
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
424
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
425
Repeat a Word Three TimesUse a loop to print the word `Hello` exactly three times, once per line (see Exp...
easy○ Not Started
Loops
Solve
426
Product of Array ElementsGiven the array `{ 1, 2, 3, 4, 5 }`, multiply all elements together with a loop ...
easy○ Not Started
Loops
Solve
427
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
428
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
429
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
274
Sum of Evens to 50Add up only the even numbers between 1 and 50 and print the total. Loop through ...
medium○ Not Started
Loops
Solve
275
Star TrianglePrint a left-aligned triangle made of asterisks: 1 star on the first row, 2 on t...
medium○ Not Started
Loops
Solve
276
FizzBuzz to FifteenWrite the classic FizzBuzz for the numbers 1 to 15. For each number, print Fizz ...
medium○ Not Started
Loops
Solve
430
Reverse a NumberRead a positive integer from input, then use a loop to reverse its digits and pr...
medium○ Not Started
Loops
Solve
431
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
432
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
433
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
434
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
435
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
436
Rectangle of StarsRead two numbers from input: the number of rows, then the number of columns. Use...
medium○ Not Started
Loops
Solve
437
Inverted Triangle of StarsUse nested loops to print an inverted triangle of stars: the first row has 5 sta...
medium○ Not Started
Loops
Solve
438
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
439
Greatest Common Divisor with a LoopRead two positive integers (one per line) and use a loop (the Euclidean algorith...
hard○ Not Started
Loops
Solve
440
Collatz Step CountRead a positive integer `n`. Repeatedly apply the Collatz rule (if `n` is even, ...
hard○ Not Started
Loops
Solve
441
Palindrome Number CheckRead a positive integer. Use a loop to reverse its digits, then print `Yes` if t...
hard○ Not Started
Loops
Solve