File: relops.f

package info (click to toggle)
ftnchek 3.1.2-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 6,436 kB
  • ctags: 5,393
  • sloc: ansic: 24,609; fortran: 5,565; yacc: 3,682; sh: 2,518; makefile: 772; lisp: 264; f90: 94; perl: 76
file content (27 lines) | stat: -rw-r--r-- 682 bytes parent folder | download | duplicates (7)
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
C  Test program for acceptance of new style relational operators.  These
C  are F90 standard, not F77.
      real x, y

      write(*,*) 'Enter two numbers'
      read(*,*) x,y

      if( x > y ) then
         write(*,*) x,' is greater than',y
      endif
      if( x == y ) then
         write(*,*) x, ' is equal to ',y
      endif
      if( x /= y ) then
         write(*,*) x, ' is not equal to',y
      endif
      if( x >= y ) then
         write(*,*) x,' is greater or equal to than',y
      endif
      if( x < y ) then
         write(*,*) x, ' is less than ',y
      endif
      if( x <= y ) then
         write(*,*) x, ' is less than or equal to ',y
      endif
      end