A+B: Difference between revisions
Content deleted Content added
Add Genie |
|||
Line 1,895: | Line 1,895: | ||
{{out}} |
{{out}} |
||
<pre>prompt$ valac aplusb- |
<pre>prompt$ valac aplusb-genie.gs |
||
prompt$ ./aplusb- |
prompt$ ./aplusb-genie |
||
Enter A and B, two numbers separated by space |
Enter A and B, two numbers separated by space |
||
20 22 |
20 22 |
||
From 20 22 |
From 20 22 |
||
A + B = 42 |
A + B = 42 |
||
prompt$ echo '123 234' | ./aplusb- |
prompt$ echo '123 234' | ./aplusb-genie |
||
Enter A and B, two numbers separated by space |
Enter A and B, two numbers separated by space |
||
From 123 234 |
From 123 234 |
||
A + B = 357 |
A + B = 357 |
||
prompt$ echo '123 2345' | ./aplusb- |
prompt$ echo '123 2345' | ./aplusb-genie |
||
Enter A and B, two numbers separated by space |
Enter A and B, two numbers separated by space |
||
B outside range (-1000, 1000), but it's ok, no one will tell |
B outside range (-1000, 1000), but it's ok, no one will tell |