User input/Text: Difference between revisions
Content added Content deleted
Grammarware (talk | contribs) (→{{header|BabyCobol}}: conform to the task definition) |
No edit summary |
||
Line 965: | Line 965: | ||
IO.puts "Integer = #{b}" |
IO.puts "Integer = #{b}" |
||
IO.puts "Float = #{f}" |
IO.puts "Float = #{f}" |
||
</syntaxhighlight> |
|||
=={{header|EMal}}== |
|||
<syntaxhighlight lang="emal"> |
|||
text string ← ask(text, "Enter a string: ") |
|||
int number |
|||
for ever |
|||
number ← ask(int, "Enter the integer 75000: ") |
|||
if number æ 75000 do break end |
|||
end |
|||
writeLine() |
|||
writeLine(string) |
|||
writeLine(number) |
|||
</syntaxhighlight> |
</syntaxhighlight> |
||