Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PROG-material-public
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yue Wu
PROG-material-public
Commits
a0fefc9e
Commit
a0fefc9e
authored
1 year ago
by
dali662d
Browse files
Options
Downloads
Patches
Plain Diff
Update 03_taschenrechner_mit_funktionen.f95
parent
8bd73c76
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Sonderuebung/WiSe23-24/SU04_2023_11_15/03_taschenrechner_mit_funktionen.f95
+3
-8
3 additions, 8 deletions
...3-24/SU04_2023_11_15/03_taschenrechner_mit_funktionen.f95
with
3 additions
and
8 deletions
Sonderuebung/WiSe23-24/SU04_2023_11_15/03_taschenrechner_mit_funktionen.f95
+
3
−
8
View file @
a0fefc9e
...
...
@@ -12,12 +12,7 @@ program taschenrechner
WRITE
(
*
,
*
)
"Fuer die Berechnung einer Kreisflaeche schreibe A"
WRITE
(
*
,
*
)
"Fuer Quader Ober- und Unterflaeche Q"
DO
! Eingabe wird wiederholt, wenn der Operaor ungültig ist
READ
(
*
,
*
)
op
IF
(
op
==
"+"
.OR.
op
==
"-"
.OR.
op
==
"*"
.OR.
op
==
"/"
.OR.
op
==
"A"
.OR.
op
==
"Q"
)
EXIT
WRITE
(
*
,
*
)
"Die Eingabe ist ungueltig. Gebe einen neuen Operator ein."
END
DO
READ
(
*
,
*
)
op
IF
(
op
==
"+"
.OR.
op
==
"-"
.OR.
op
==
"*"
.OR.
op
==
"/"
)
THEN
CALL
calc
(
op
)
...
...
@@ -26,7 +21,7 @@ program taschenrechner
ELSEIF
(
op
==
"Q"
)
THEN
CALL
quader
ELSE
WRITE
(
*
,
*
)
"
Operatorfehler
"
WRITE
(
*
,
*
)
"
Der eingegebene Operator ist ungueltig!
"
END
IF
...
...
@@ -116,4 +111,4 @@ program taschenrechner
WRITE
(
*
,
*
)
"Das Volumen des Kreises ist "
,
res
end
subroutine
circle
end
program
taschenrechner
\ No newline at end of file
end
program
taschenrechner
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment