Write a function that takes the base and height of a triangle and return its area.Using c#, nested for loop | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Write a function that takes the base and height of a triangle and return its area.Using c#, nested for loop

Sample Output: Base: 3 Height: 2 Area of the triangle: 3   Base: 7 Height: 4 Area of the triangle: 14  

7th Jan 2021, 1:19 PM
Jumong
Jumong - avatar
1 Answer
+ 3
Jumong , before we can help you, you should show us your attempt first. if you have not done a try by yourself upto now, please do so. Put your code in playground and link it here. Thanks!
7th Jan 2021, 3:30 PM
Lothar
Lothar - avatar