Search⌘ K
AI Features

Exercise 1: Calculating Area

Explore how to define a C# class that models a right angled triangle with length and height properties. Learn to implement a method that calculates the triangle's area, helping you understand basic class structure and object-oriented programming in C#.

We'll cover the following...

Problem Statement

Let’s start with a very basic example.

Write a ...