Skip to content

C# Basics

Variables, loops, conditions

Tasks
4
Duration
8 weeks
Language
C#

Materials

  1. First program and Console.WriteLine
  2. Variables and types

Tasks

  1. Hello, World! 10 pts Print exactly the text Hello, World! to the console.
  2. Sum of two numbers 10 pts Two integers separated by a space are given on one line. Print their sum.
  3. Area of a rectangle 10 pts Two integers a and b are given on one line. Print the area of the rectangle with sides a and b.
  4. Even or odd 15 pts Read one integer. Print even if it is even and odd if it is odd.