Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Temperature-conversion/XPL0/temperature-conversion.xpl0
Normal file
10
Task/Temperature-conversion/XPL0/temperature-conversion.xpl0
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
include c:\cxpl\codes;
|
||||
real K, C, F, R;
|
||||
[ChOut(0, ^K); K:= RlIn(0);
|
||||
C:= K - 273.15;
|
||||
ChOut(0, ^C); RlOut(0, C); CrLf(0);
|
||||
F:= 1.8*C + 32.0;
|
||||
ChOut(0, ^F); RlOut(0, F); CrLf(0);
|
||||
R:= F + 459.67;
|
||||
ChOut(0, ^R); RlOut(0, R); CrLf(0);
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue