Find the answer to your Linux question:
Results 1 to 2 of 2
would someone be able to write this script - I know it is a loop but am having trouble: I need a script that will prompt for the user’s first ...
  1. #1
    Just Joined!
    Join Date
    Feb 2009
    Posts
    11

    script help

    would someone be able to write this script - I know it is a loop but am having trouble:

    I need a script that will prompt for the user’s first name and store it in a variable. Then prompt for the last name and store it in a variable. Finally, display the stored information in the format “You entered lastname, firstname” and ask the user for confirmation. If the answer is “y” or “yes” then say “Thank you!” if the answer is “n” or “no” then start again with the prompts.

  2. #2
    Linux User
    Join Date
    May 2008
    Location
    NYC, moved from KS & MO
    Posts
    251
    Why don't you start writing one and let's start from there. The best way to learn programming is by programming.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...