A+B: Difference between revisions
Content added Content deleted
(Added Euler) |
Jazzedpineda (talk | contribs) (Add Plain English) |
||
Line 4,413: | Line 4,413: | ||
<syntaxhighlight lang="pli">get (a, b); |
<syntaxhighlight lang="pli">get (a, b); |
||
put (a+b);</syntaxhighlight> |
put (a+b);</syntaxhighlight> |
||
=={{header|Plain English}}== |
|||
<syntaxhighlight lang="plainenglish"> |
|||
To run: |
|||
Start up. |
|||
Read a number from the console. |
|||
Read another number from the console. |
|||
Output the sum of the number and the other number. |
|||
Wait for the escape key. |
|||
Shut down. |
|||
To output the sum of a number and another number: |
|||
If the number is not valid, write "Invalid input" to the console; exit. |
|||
If the other number is not valid, write "Invalid input" to the console; exit. |
|||
Write the number plus the other number then " is the sum." to the console. |
|||
To decide if a number is valid: |
|||
If the number is not greater than or equal to -1000, say no. |
|||
If the number is not less than or equal to 1000, say no. |
|||
Say yes. |
|||
</syntaxhighlight> |
|||
=={{header|Pony}}== |
=={{header|Pony}}== |