Skip to content
Snippets Groups Projects
Commit 7e3cefb5 authored by dali662d's avatar dali662d
Browse files

Upload New File

parent 05684716
No related branches found
No related tags found
No related merge requests found
program logical_test
implicit none
! Test für die Operatoren für Logicals
LOGICAL :: yes = .true.
LOGICAL :: no = .false.
WRITE(*,*) "Ja und Nein"
WRITE(*,*) yes
WRITE(*,*) no
WRITE(*,*) "Nicht Ja"
WRITE(*,*) .NOT. yes
WRITE(*,*) "Und und Oder"
WRITE(*,*) yes .AND. no
WRITE(*,*) yes .OR. no
WRITE(*,*) "Gleich und Ungleich"
WRITE(*,*) yes .EQV. no
WRITE(*,*) yes .NEQV. no
end program logical_test
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment