top of page

getline Example

This program prompts the user for their name and displays it to them. It uses the getline command to get the users input from the command line.

Program


---

Name Program get the users name and display it

---


prog_vars =

d/name ""

prog_vars.


prog_start =

print "Name Program"

prog_start.


prog_loop =

print "What is your name?"

getline -> /name

print "Your name is: /name hello /name"

exitprog

prog_loop.


prog_stop =

print "bye /name"

prog_stop.



bottom of page