Programming basics
Made for your first weeks of programming, in any of the 20 languages. The starter code already reads the input into variables, so you write only the part each challenge is about. Go in order: each program adds one new idea to the ones before.
Challenges
14
Easy
14
Input and output
Read a value, work something out, print it.
| Status | Challenge | Topics | Level | Accepted | Save |
|---|---|---|---|---|---|
| 1.Say helloRead a name and greet that person. | BasicsStrings | Easy | 100% | ||
| 2.Sum of two numbersRead two whole numbers and print their sum. | BasicsMath | Easy | 100% | ||
| 3.Celsius to FahrenheitConvert a temperature from Celsius to Fahrenheit. | BasicsMath | Easy | – |
Making decisions
if, else, and conditions that combine.
| Status | Challenge | Topics | Level | Accepted | Save |
|---|---|---|---|---|---|
| 4.Even or oddSay whether a whole number is even or odd. | BasicsMath | Easy | 100% | ||
| 5.Largest of threePrint the largest of three numbers. | Basics | Easy | 100% | ||
| 6.Leap yearDecide whether a year is a leap year. | BasicsMath | Easy | 100% | ||
| 7.Grade from scoreTurn a test score into a letter grade. | Basics | Easy | – |
Loops
Repeat a step, count, and add things up.
| Status | Challenge | Topics | Level | Accepted | Save |
|---|---|---|---|---|---|
| 8.FizzBuzzCount to n, saying Fizz, Buzz or FizzBuzz for multiples of 3 and 5. | BasicsMath | Easy | – | ||
| 9.Multiplication tablePrint the times table of a number from 1 to 10. | Basics | Easy | – | ||
| 10.Right triangleDraw a triangle of stars, one more on each line. | Basics | Easy | – | ||
| 11.Sum of a listRead a list of numbers and print their total. | BasicsArrays | Easy | – |
Working with text
Walk through a line letter by letter and word by word.
| Status | Challenge | Topics | Level | Accepted | Save |
|---|---|---|---|---|---|
| 12.Count the vowelsCount how many vowels a line of text has. | BasicsStrings | Easy | – | ||
| 13.Reverse a linePrint a line of text backwards. | BasicsStrings | Easy | – | ||
| 14.Count the wordsCount the words in a line of text. | BasicsStrings | Easy | – |