Write a method called that takes two int parameters: width and height, and returns the area of a rectangle
Output should be like this

Write a method called that takes two int parameters: width and height, and returns the area of a rectangle
Output should be like this

Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Naimish MakwanaPosted Mar 3, 2023, 4:04 PM
Hello Divyansha,
You can create program like below
Thanks
Naimish Makwana
Sachin SinghPosted Mar 3, 2023, 3:29 PM
Jignesh KumarPosted Mar 3, 2023, 3:22 PM
https://dotnettutorials.net/lesson/area-of-rectangle-in-csharp/