User input/Text: Difference between revisions

Content added Content deleted
No edit summary
No edit summary
Line 2,423: Line 2,423:
number = #.val(#.input("Input a number"))</syntaxhighlight>
number = #.val(#.input("Input a number"))</syntaxhighlight>


=={{header|Ada}}==
=={{header|SparForte}}==
{{As a structured script}}
As a structured script
<syntaxhighlight lang="ada">
<syntaxhighlight lang="ada">
#!/usr/local/bin/spar
#!/usr/local/bin/spar
Line 2,447: Line 2,447:
end get_string;
end get_string;
</syntaxhilight>
</syntaxhilight>
{{As a unstructured script and no exception handling}}
As a unstructured script and no exception handling
<syntaxhighlight lang="ada">
<syntaxhighlight lang="ada">
s : universal_string := get_line;
s : universal_string := get_line;