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
Start the list

Input and output

Read a value, work something out, print it.

StatusChallengeLevelSave
1.Say helloRead a name and greet that person.Easy
2.Sum of two numbersRead two whole numbers and print their sum.Easy
3.Celsius to FahrenheitConvert a temperature from Celsius to Fahrenheit.Easy

Making decisions

if, else, and conditions that combine.

StatusChallengeLevelSave
4.Even or oddSay whether a whole number is even or odd.Easy
5.Largest of threePrint the largest of three numbers.Easy
6.Leap yearDecide whether a year is a leap year.Easy
7.Grade from scoreTurn a test score into a letter grade.Easy

Loops

Repeat a step, count, and add things up.

StatusChallengeLevelSave
8.FizzBuzzCount to n, saying Fizz, Buzz or FizzBuzz for multiples of 3 and 5.Easy
9.Multiplication tablePrint the times table of a number from 1 to 10.Easy
10.Right triangleDraw a triangle of stars, one more on each line.Easy
11.Sum of a listRead a list of numbers and print their total.Easy

Working with text

Walk through a line letter by letter and word by word.

StatusChallengeLevelSave
12.Count the vowelsCount how many vowels a line of text has.Easy
13.Reverse a linePrint a line of text backwards.Easy
14.Count the wordsCount the words in a line of text.Easy