Writing a small app?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Chrisjc
    Contributor
    • Nov 2006
    • 375

    Writing a small app?

    So I have to write this small program / app / scripts whatever you want to call it... It's like a review for linux... using Veditor... however I never even learned it! lol

    So maybe someone can help me out here...
    This is what I have to do

    1. Print to the screen "Hello World!".
    I can do part one thats simple

    #Show Hello World!
    echo "Hello World!"

    2. Ask the user for their name. If their name is Bob, display to the screen "Hello Bob!". If their name is not Bob, display "Stranger Danger!"

    3. Ask the user for a number between 1 and 10. If they ask for a number outside that range, ask for the number again. When the user inputs a number between 1 and 10, have the computer display the number 1 to N (N being the number the person entered. Example: If they input the number 4, the computer will display 1 2 3 4.

    The other 2 parts are loop and if statements but I don't know veditor I have no idea where to start... Any help or insight would be great!

    Thank you,

    Chris
  • Chrisjc
    Contributor
    • Nov 2006
    • 375

    #2
    This can be closed... Friend of mine showed me some tips on bash.

    Comment

    Working...