File: comusage.f

package info (click to toggle)
ftnchek 3.3.1-7
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,684 kB
  • sloc: ansic: 21,908; fortran: 5,748; yacc: 4,071; sh: 3,035; makefile: 895; lisp: 322; f90: 118; perl: 76
file content (36 lines) | stat: -rw-r--r-- 590 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
	  Program Main
          common a,b,c
          print *,a,b,c
	  Call Input
	  Call Comp
	  Call Output
	  End

	  Subroutine Input
	  Common /INP/ x1,x2,x3,x4
	  Real x1,x2,x3
	  Common/LAST/ y1,y2,y3
	  Write(*,*) 'Enter 3 Values'
	  Read (*,*) x1,x2,x3
	  y2 = y3
	  Return
	  End

	  Subroutine Comp
	  Common /INP/ A,B,C
          Common /ZAP/ t1,t2,t3
	  Real A,B,C
	  Common /OUTP/ AVG
	  Real AVG
	  Avg = (A+B+C)/3
	  Return
	  End

	  Subroutine Output
	  Common /OUTP/ Averag
	  Real Averag
	  Common /LAST/ n1,n2,n3
	  Write (*,*) 'Average =',Averag
	  n1 = 8
	  Return
	  End