
base and height must be known.
C Code
C++ Code
Working of Program:
After the above program is executed user need to input base and height respectively.These two values will be stored in b and h variables.And then area will be calculated and stored in area variable.At last produced value will be displayed to the user.
Output:
C , C++