Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
floor and ceiling
var f, c, b: longint; a : real; begin readln(a); b:=trunc(a); begin if (frac(a)<0) then begin c:=b; f:=b-1; end else if (frac(a)>0) then begin f:=b; c:=b+1; end else begin f:=b; c:=b; end; writeln(f, ' ', c); end; end.
run
|
edit
|
history
|
help
0
Kelipatan
CON YÊU MẸ
Matrix
pdp31-boolean
1046
zadanye 3 в
test28
dad
ANA LUCIA CRUZ NERIS RODRIGUES 600623319
Matrix