program triangle
implicit none
! To find the area of a triangle
!We use the formular 1/2base*height
real :: b , h , a
write(*,*)'input the base'
read(*,*)b
write(*,*)'input the height'
read(*,*)h
a = 0.5 * b * h
write(*,*)'The area of triangle is = ',a
end program triangle
PROGRAM RESULT
DOWNLOAD PDF
implicit none
! To find the area of a triangle
!We use the formular 1/2base*height
real :: b , h , a
write(*,*)'input the base'
read(*,*)b
write(*,*)'input the height'
read(*,*)h
a = 0.5 * b * h
write(*,*)'The area of triangle is = ',a
end program triangle
PROGRAM RESULT
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEht4EQhFf9ko4PYpS0GNRpvpHs_MRFog4oCyv5aVEfIqNu0rRsyDn42FzM8Bsu_HvIhmxzXkvb0_vx8oucldlS3NAn0A_OW_pB_FHMjMbI8QT5iVWPJnCYc6DHk17_o70fIO-zwtcgEgV4/s320/1.png)
DOWNLOAD PDF
0 Comments
If you have further concerns, kindly drop a comment.