Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  npr
Language: FORTRAN
Code:
c this is a program to calculate the area of a triangle using hero's
        print*,'enter side 1='

       read*,a

       print*,'enter side 2='

       read*,b

       print*,'enter side 3='

       read*,c

       p=a+b+c

       s=p/2

       ar=sqrt(s*(s-a)*(s-b)*(s-c))

       print*,'perimeter=',p

       print*,'area=',ar

       end
          
Comments: