How to calculate the area of rectangle in C#

1 Answer

0 votes
using System;

class Program
{
    static void Main() {
        int width = 7;  
        int height = 13;  
        
        int area = width * height;  

        Console.WriteLine("Area = " + area);  
    }
}



/*
run:
 
Area = 91
 
*/

 



answered Jul 11, 2021 by avibootz

Related questions

1 answer 206 views
1 answer 116 views
1 answer 133 views
1 answer 130 views
1 answer 133 views
1 answer 144 views
...