Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
test24
//fpc 3.0.4 {record with variable part "case"} program test24; type fig=(circle,quadra); Figure=record case f:fig of circle:(r:real); quadra:(a,b:real) {"a" gets the space of "r"} end; var q:Figure; function square(x:Figure):real; begin with x do case f of circle: square:=3.14*sqr(r); quadra:square:=a*b ; end; end; begin with q do begin f:=quadra; r:=10; b:= 3; writeln(r:2:1); writeln(b:2:1); writeln(square(q):2:1) ; end; end.
run
|
edit
|
history
|
help
0
basketball_player_training
Задача №1516. Проверка на простоту (цикл while)
Pokazivaci, ulancane liste
Подсчёт количества целочисленных точек внутри круга радиуса r
practica 2 ejercicio 3
Урок 2. Функции:
Lineare Liste Aufbauen
Matrix
BubbleSor (slimmer)
08 ariketa