CJCoding With Joseph
15free / daySign inCreate account
TitleOpen
104
For Loop 1 to 10Use a for loop to print the numbers 1 to 10 on one line, separated by single spaces.
easyNot startedSolve
105
While Loop 10 to 1Use a while loop to print 10 down to 1 on one line, separated by single spaces.
easyNot startedSolve
106
Do-While 1 to 5Use a do-while loop to print 1 to 5 on one line, separated by single spaces.
easyNot startedSolve
107
Print Five StarsUse a for loop to print five characters on one line.
easyNot startedSolve
108
Even Numbers 2 to 20Use a for loop to print the even numbers from 2 to 20, separated by single spaces.
easyNot startedSolve
109
Odd Numbers 1 to 19Use a for loop to print the odd numbers from 1 to 19, separated by single spaces.
easyNot startedSolve
110
Countdown 5 to 0Use a for loop to count down from 5 to 0 on one line, separated by single spaces.
easyNot startedSolve
111
Multiples of 5 up to 50Use a for loop to print the multiples of 5 from 5 to 50, separated by single spaces.
easyNot startedSolve
112
Squares 1 to 5Use a for loop to print the squares of 1 to 5, separated by single spaces.
easyNot startedSolve
113
Sum 1 to 100Use a for loop to add the numbers 1 to 100 and print the total in the exact format shown in Expected Output.
easyNot startedSolve
114
Sum of Evens 1 to 10Use a for loop to add only the even numbers from 1 to 10 and print the output shown in Expected Output.
easyNot startedSolve
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 (see Expected Output).
easyNot startedSolve
116
Multiplication Table of 4Use a for loop to print the multiplication table of 4 from 1 to 10, one line each in the format '4 x i = result'.
easyNot startedSolve
117
Print 1 to NRead an integer N, then use a for loop to print 1 to N on one line separated by single spaces.
easyNot startedSolve
118
Sum 1 to NRead an integer N, then use a for loop to add 1 to N and print: Sum: [total] Example: N = 10 prints 'Sum: 55'.
easyNot startedSolve
119
foreach Over an ArrayAn int array {2, 4, 6, 8} is given.
easyNot startedSolve
267
Count to TenWrite a program that uses a for loop to print the whole numbers from 1 to 10.
easyNot startedSolve
268
Sum From 1 to 100Use a loop to add together every whole number from 1 to 100 (that is, 1 + 2 + 3 + ...
easyNot startedSolve
269
Even Numbers to 20Print all of the even numbers from 2 up to and including 20, each on its own line.
easyNot startedSolve
270
Seven Times TablePrint the 7 times table, from 7 x 1 = 7 all the way down to 7 x 10 = 70, with one line per row exactly like a school multiplication table.
easyNot startedSolve
271
Rocket CountdownUse a while loop to count down from 5 to 1, printing each number on its own line, and then print the word Liftoff!
easyNot startedSolve
272
Total the PricesAn array already holds a short list of prices: 4, 8, 15, 16, 23, and 42.
easyNot startedSolve
273
Keep DoublingStarting from 1, keep doubling a value (1, 2, 4, 8, and so on) and print each result as long as it is 64 or smaller.
easyNot startedSolve
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 the total on its own line (see Expected Output).
easyNot startedSolve
418
Powers of Two up to 1024Print each power of two starting at 1 and doubling until you reach 1024, one value per line (see Expected Output).
easyNot startedSolve
419
Print the AlphabetLoop over the letters a through z and print them all on a single line, then end the line (see Expected Output).
easyNot startedSolve
420
Multiples of 3 up to 30Print every multiple of 3 from 3 up to and including 30, one per line (see Expected Output).
easyNot startedSolve
421
Sum of Array ElementsGiven the array { 5, 10, 15, 20, 25 }, use a foreach loop to add up every element and print the total (see Expected Output).
easyNot startedSolve
422
Print a String Character by CharacterLoop over the string "Code" and print each character on its own line (see Expected Output).
easyNot startedSolve
423
Count Down by Twos from 10Count down from 10 to 0, stepping by 2 each time, printing each value on its own line (see Expected Output).
easyNot startedSolve
424
Sum of Squares 1 to 5Add up the squares of the numbers 1 through 5 (1 + 4 + 9 + 16 + 25) and print the total (see Expected Output).
easyNot startedSolve
425
Repeat a Word Three TimesUse a loop to print the word Hello exactly three times, once per line (see Expected Output).
easyNot startedSolve
426
Product of Array ElementsGiven the array { 1, 2, 3, 4, 5 }, multiply all elements together with a loop and print the product (see Expected Output).
easyNot startedSolve
427
Numbers Divisible by 3 and 5Loop from 1 to 100 and print only the numbers divisible by BOTH 3 and 5, one per line (see Expected Output).
easyNot startedSolve
428
Largest Element in an ArrayGiven the array { 3, 7, 2, 9, 4 }, use a loop to find the largest value and print it (see Expected Output).
easyNot startedSolve
429
Skip Multiples of 3 with continueLoop from 1 to 10, but use continue to skip every multiple of 3.
easyNot startedSolve
120
Multiplication Table of NRead an integer N and print its multiplication table from 1 to 10, one line each as 'N x i = result'.
mediumNot startedSolve
121
Factorial of NRead an integer N (N >= 1) and print N!
mediumNot startedSolve
122
Count the DigitsRead a positive integer N and use a while loop to count how many digits it has.
mediumNot startedSolve
123
Power with a LoopRead a base and an exponent (each on its own line).
mediumNot startedSolve
124
Right Triangle of StarsRead an integer N and use nested loops to print a right triangle with N rows, where row i has i stars.
mediumNot startedSolve
125
Count Even and OddRead an integer N, then loop from 1 to N counting evens and odds.
mediumNot startedSolve
274
Sum of Evens to 50Add up only the even numbers between 1 and 50 and print the total.
mediumNot startedSolve
275
Star TrianglePrint a left-aligned triangle made of asterisks: 1 star on the first row, 2 on the second, and so on up to 5 stars on the fifth row.
mediumNot startedSolve
276
FizzBuzz to FifteenWrite the classic FizzBuzz for the numbers 1 to 15.
mediumNot startedSolve
430
Reverse a NumberRead a positive integer from input, then use a loop to reverse its digits and print the result.
mediumNot startedSolve
431
Sum of a Number's DigitsRead a positive integer from input and use a loop to add up its digits, then print the sum.
mediumNot startedSolve
432
Count Vowels in a StringRead a line of text from input and use a loop to count how many vowels (a, e, i, o, u, upper or lower case) it contains, then print the count.
mediumNot startedSolve
433
FizzBuzz 1 to 15Loop from 1 to 15.
mediumNot startedSolve
434
Reverse a String with a LoopRead a line of text and use a loop to build and print the reversed string.
mediumNot startedSolve
435
Count Occurrences of a CharacterRead two lines of input: the first is a word, the second is a single character.
mediumNot startedSolve
436
Rectangle of StarsRead two numbers from input: the number of rows, then the number of columns.
mediumNot startedSolve
437
Inverted Triangle of StarsUse nested loops to print an inverted triangle of stars: the first row has 5 stars, and each following row has one fewer, down to a single star (see Expected Output).
mediumNot startedSolve
438
Number TriangleUse nested loops to print a triangle where row i shows the numbers 1 through i with no spaces (see Expected Output).
mediumNot startedSolve
126
Fibonacci First N TermsRead an integer N (N >= 1) and print the first N Fibonacci numbers on one line separated by single spaces.
hardNot startedSolve
127
Primes up to NRead an integer N and print every prime number from 2 to N on one line separated by single spaces.
hardNot startedSolve
128
Multiplication GridRead an integer N and print an N x N multiplication grid.
hardNot startedSolve
439
Greatest Common Divisor with a LoopRead two positive integers (one per line) and use a loop (the Euclidean algorithm) to compute their greatest common divisor, then print it.
hardNot startedSolve
440
Collatz Step CountRead a positive integer n.
hardNot startedSolve
441
Palindrome Number CheckRead a positive integer.
hardNot startedSolve