Easy10min
Hello World in Go
Write your first Go program that prints Hello, World to the terminal, then compare your solution with a complete, tested example.
- fmt
- package main
Beginner Go exercises with solutions: first programs, conditionals, loops and simple manipulations, each with a statement and a full solution.
Write your first Go program that prints Hello, World to the terminal, then compare your solution with a complete, tested example.
Read an integer and print whether it is even or odd using the modulo operator, then check your logic against a complete tested Go solution.
Print the numbers 1 to 100, replacing multiples of 3 with Fizz, of 5 with Buzz and of both with FizzBuzz, with a complete tested Go solution.
Print the full multiplication table of a number from 1 to 10 with a for loop, then compare your code with a complete tested Go solution.