Thursday, May 10, 2012

Expression Evaluation: Area of a Triangle

Hello guys!!! Hope, you all are well by the grace of Almighty ALLAH. Today we learn how to find out the area of a Triangle.

Generally, we know that the area of a triangle = 0.5 x base x height. Now, we can write a C programming code by using this formula. Let's look at the program:













In this code The ASCII character of 1/2 is used and it's ASCII value is 171.


Thank you all..:)

0 comments:

Post a Comment