Page 24 of 30 FirstFirst ... 142223242526 ... LastLast
Results 231 to 240 of 297

Thread: "Hello Ubuntu" in every programming language

  1. #231
    Join Date
    Dec 2006
    Location
    Hogwarts, `UNKNOWN`
    Beans
    Hidden!
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: "Hello Ubuntu" in every programming language

    This thread is awesome. Since C and C++ are already taken, I'll do with QBasic (assuming nobody else took it).
    QBasic:
    Code:
    DIM NAME AS STRING
    INPUT "Hi, What's your name?", NAME
    
    PRINT "Hello";NAME"; Welcome to Ubuntu"
    
    END
    I have doubts about the PRINT statement int the end. I haven't programmed in QB for 4-5 years now.

    EDIT: Drat. I've been beaten.


    VB6:
    Code:
    Private Sub Form_Load()
    
    Dim Name As String
    InputBox("Hi What's your name: ", NAME)
    
    MsgBox("Your name is " + NAME)
    
    End Sub
    Last edited by Canis familiaris; October 6th, 2008 at 09:12 PM. Reason: Corrected the misplace semicolons

  2. #232
    Join Date
    Aug 2008
    Beans
    Hidden!

    Re: "Hello Ubuntu" in every programming language

    Next version of attempted index.
    Attached Files Attached Files

  3. #233
    Join Date
    Dec 2006
    Location
    Hogwarts, `UNKNOWN`
    Beans
    Hidden!
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: "Hello Ubuntu" in every programming language

    Quote Originally Posted by pp. View Post
    Next version of attempted index.
    You didn't include VB6 (in my last post)

    EDIT: I see VB.NET. But VB6 and VB.NET are little different aren't they?

  4. #234
    Join Date
    Aug 2008
    Beans
    Hidden!

    Re: "Hello Ubuntu" in every programming language

    Quote Originally Posted by Anurag_panda View Post
    You didn't include VB6 (in my last post)

    EDIT: I see VB.NET. But VB6 and VB.NET are little different aren't they?
    Sorry - I had assembled the index data before you added your entries. Perhaps a kindly mod will add later entries to the index once it is online, who knows.

  5. #235
    Join Date
    Apr 2007
    Location
    (X,Y,Z) = (0,0,0)
    Beans
    3,715

    Re: "Hello Ubuntu" in every programming language

    Quote Originally Posted by Anurag_panda View Post
    Code:
    DIM NAME AS STRING;
    INPUT "Hi, What's your name?", NAME
    
    PRINT "Hello";NAME;" Welcome to Ubuntu"
    
    END
    DIM in QBasic is somewhat strange... it's usually related to older dialects and IIRC, was kept for compatibility.

  6. #236
    Join Date
    Apr 2007
    Beans
    14,781

    Re: "Hello Ubuntu" in every programming language

    Quote Originally Posted by pp. View Post
    Sorry - I had assembled the index data before you added your entries. Perhaps a kindly mod will add later entries to the index once it is online, who knows.
    What assembler did you use? A higher level language would have been much more sensible I think.

    I'll add the others.

  7. #237
    Join Date
    Dec 2006
    Location
    Hogwarts, `UNKNOWN`
    Beans
    Hidden!
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: "Hello Ubuntu" in every programming language

    Quote Originally Posted by nvteighen View Post
    DIM in QBasic is somewhat strange... it's usually related to older dialects and IIRC, was kept for compatibility.
    NAME could be implictly declared AS NAME$ as well. But this works. I am not sure about older dialects but it is extensively used in VB6 though.

  8. #238
    Join Date
    Aug 2008
    Beans
    Hidden!

    Re: "Hello Ubuntu" in every programming language

    Quote Originally Posted by LaRoza View Post
    What assembler did you use? A higher level language would have been much more sensible I think.

    I'll add the others.
    assembler=self
    index builder=OpenOffice calc

    self != sensible

  9. #239
    Join Date
    Jul 2008
    Beans
    1,706

    Re: "Hello Ubuntu" in every programming language

    heres my FreeBasic one...a QBasic descendant

    PHP Code:
    'This is a comment
    Dim As String MyName '
    Declares a variable
    Input 
    "What is your name?",MyName 'Gets your name
    Print "Welcome to Ubuntu ";MyName '
    Out puts your name...the semicolon is used instead of a comma because a comma would add a tab inbetween ubuntu and name 
    Sleep 
    'Pauses the Program 

  10. #240
    Join Date
    Jun 2007
    Location
    Edinburgh Scotland
    Beans
    260
    Distro
    Xubuntu 11.04 Natty Narwhal

    Re: "Hello Ubuntu" in every programming language

    Wibrel

    Code:
    print("Hi - What's your name?")
    f = sys::stdin()
    name = f.readline()
    f.close()
    print("Hi %s. Welcome to Ubuntu" % name)
    return 0
    Only just discovered this! More importantly, I might have got me an entry in this thread

    Info on Wibrel here:

    http://mathias-kettner.de/wirbel.html

    To compile with the Wibrel compiler:

    Code:
    wic <file.w>
    See web page for details
    I laughed, I cried, I jumped with joy. I was here before Killroy. 8)

Page 24 of 30 FirstFirst ... 142223242526 ... 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
  •