Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Стандартные функции в паскале round, trunc, int, frac
var x : real; begin readln(x); writeln ('Округление до целого (round(x)): ', x:2:2, ' = ', round(x), ' становится типом "integer"'); writeln ('Целая часть числа trunc(x): ', x:2:2, ' = ', trunc(x), ' становится типом "integer"'); writeln ('Целая часть int(x): ', x:2:2, ' = ', int(x):2:2, ' остаётся типом "real"'); writeln ('Дробная часть frac(x): ', x:2:2, ' = ', frac(x):2:2, ' остаётся типом "real"'); end.
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
solar_system_n_planets_any_time
program z1
Bang cuu chuong
practica 3 ejercicio 10
testMatrice0.1
Projet1
homework
Пиріжки
practica 1 ejercicio 8
hello world
Please log in to post a comment.