Skip to content
Snippets Groups Projects
Commit 8fcee825 authored by dali662d's avatar dali662d
Browse files

Upload New File

parent 467a5100
No related branches found
No related tags found
No related merge requests found
program wahrheitstabelle
implicit none
! Gibt die "Wahrheitstabellen" fuer UND und ODER aus
logical :: yes = .true., no = .false.
write(*,*)
write(*,*) " AND ", " | ", "true ", " | ", "false"
write(*,*) "------|-------|------"
write(*,*) "true ", " | ", yes .and. yes, " | ", yes .and. no
write(*,*) "------|-------|------"
write(*,*) "false", " | ", no .and. yes, " | ", no .and. no
write(*,*)
write(*,*) " OR ", " | ", "true ", " | ", "false"
write(*,*) "------|-------|------"
write(*,*) "true ", " | ", yes .or. yes, " | ", yes .or. no
write(*,*) "------|-------|------"
write(*,*) "false", " | ", no .or. yes, " | ", no .or. no
write(*,*)
end program wahrheitstabelle
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment