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
nested for loop a(iii)
Pascal Epsilon
practica 7 ejercicio B8
LewisCableCompanyPasprogramme
Project Euler 21 - Amicable numbers
Perimetro y Area (con validaciones)
practica 1 ejercicio 5
Lab 1: Program 1 Hello World
practica 5 ejercicio 6
Сумма пар чисел кратных и некратных 11 с дельтой