Page 16 of 30 FirstFirst ... 6141516171826 ... LastLast
Results 151 to 160 of 297

Thread: "Hello Ubuntu" in every programming language

  1. #151
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: "Hello Ubuntu" in every programming language

    No one wrote with Icon yet?

  2. #152
    Join Date
    Apr 2006
    Beans
    6

    Re: "Hello Ubuntu" in every programming language

    MUMPS

    I can't believe no one has done this one yet. MUMPS, also known as the M Programming Language: http://en.wikipedia.org/wiki/MUMPS

    I actually HAD to get this working and finally did, so I have the instructions pretty fresh on my mind.

    First, download and install "GT.M High end database + MUMPS compiler".

    Extract the tar file, run './configure', let it install.

    Set the required environment variables. The following assumes you installed to /var/mumps/ and are using mumps.gld in the current directory for your globals.
    export gtmgbldir=mumps.gld
    export gtm_dist=/var/mumps/

    Final setup process is to initiate your database:
    ./mumps -run GDE
    type 'exit' at the prompt

    Then you have to initiate your database again, but in a different way? I don't understand this part but its definitely required:
    ./munip create

    Finally, put the source below in a file called test.m
    Run the command './mumps test.m' to compile the test.
    Run the command './mumps -r test' to run the test.

    Code:
    TESTR ;test file
    	W #!!,"Please enter your name: "
    	READ NAME
    	W !,"Hello ",NAME,"!",!
    	W "Welcome to Ubuntu, from (M)UMPS!!",!
    	Q
    	; END

  3. #153
    Join Date
    Mar 2006
    Location
    Netherlands
    Beans
    73
    Distro
    Lubuntu 13.04 Raring Ringtail

    Re: "Hello Ubuntu" in every programming language

    None in VHDL yet??

  4. #154
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: "Hello Ubuntu" in every programming language

    I thought I write it in C

    C Modified
    Code:
    #include<stdio.h>
    int main()
    {
    char string[100];
    printf("Hello,What is your name?");
    fgets(string,100,stdin);
    printf("Welcome to Ubuntu %s",string);
    getchar();
    return 0;
    }

  5. #155
    Join Date
    May 2006
    Location
    BH, Brazil
    Beans
    338

    Re: "Hello Ubuntu" in every programming language

    I thought I write it in C
    C Modified
    It's not only C Modified, it's C FIXED!

    The example in the first page is wrong, because it passes &name as
    parameter for scanf and printf. It should have passed name instead.

  6. #156
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: "Hello Ubuntu" in every programming language

    Quote Originally Posted by volanin View Post
    It's not only C Modified, it's C FIXED!

    The example in the first page is wrong, because it passes &name as
    parameter for scanf and printf. It should have passed name instead.
    lol..well glad to do my Job

  7. #157
    Join Date
    Dec 2007
    Location
    Tulsa, OK
    Beans
    8
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: "Hello Ubuntu" in every programming language

    UniVerse PickBASIC


    PROGRAM HELLO.WORLD
    CRT @(0,0):"Hi! What's your name?":
    INPUT USERNAME
    CRT @(0,2):"Hello, ":USERNAME:"! Welcome to Ubuntu!"
    STOP

  8. #158
    Join Date
    Aug 2006
    Beans
    Hidden!

    Re: "Hello Ubuntu" in every programming language

    Scheme:

    (begin (display "What is your name? ")
    (let ((name (read)))
    (display "Hello, ")
    (display name)
    (display ". Welcome to Ubuntu")))

  9. #159
    Join Date
    Nov 2007
    Location
    New York
    Beans
    1,103
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: "Hello Ubuntu" in every programming language

    I'm sure it's been done, but here it is in Python.
    PHP Code:
    name raw_input("Hi! What's your name?")
    print 
    "Hello, " name '! Welcome to Ubuntu!' 
    Last edited by seventhc; January 17th, 2008 at 03:38 PM.

  10. #160
    Join Date
    Dec 2007
    Location
    UK
    Beans
    571
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: "Hello Ubuntu" in every programming language

    Blitz Basic
    Code:
    s$=Input("Hi! Whats your name? ")
    Print "Hello "+s$+"! Welcome to Ubuntu!"
    WaitKey

Page 16 of 30 FirstFirst ... 6141516171826 ... LastLast

Bookmarks

Posting Permissions

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