Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class
TEMP_CONVERTER
feature
c_to_f (c: REAL)
local f: REAL
do
f := (c * 9.0 / 5.0) + 32.0
io.put_real(f); io.put_new_line
end
end
! Run
local
t: TEMP_CONVERTER
do
create t
t.c_to_f(25.0)
endCoding works best on desktop or with an external keyboard.