Basic C# Console

C# Calculate Rectangle Area

This simple program calculates the area of a rectangle.

Variables are defined in the first row. In the next lines, values are assigned to these variables.

In the last line we print the area of Rectangle to the screen.

Code:

Output:

area-of-rectangle

Online Code:

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.