Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
21
Task/Integer-comparison/PHL/integer-comparison.phl
Normal file
21
Task/Integer-comparison/PHL/integer-comparison.phl
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
module intergertest;
|
||||
|
||||
extern printf;
|
||||
extern scanf;
|
||||
|
||||
@Integer main [
|
||||
var a = 0;
|
||||
var b = 0;
|
||||
scanf("%i %i", ref (a), ref (b));
|
||||
|
||||
if (a < b)
|
||||
printf("%i is less than %i\n", a::get, b::get);
|
||||
|
||||
if (a == b)
|
||||
printf("%i is equal to %i\n", a::get, b::get);
|
||||
|
||||
if (a > b)
|
||||
printf("%i is greater than %i\n", a::get, b::get);
|
||||
|
||||
return 0;
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue