Page 13 of 30 FirstFirst ... 3111213141523 ... LastLast
Results 121 to 130 of 297

Thread: "Hello Ubuntu" in every programming language

  1. #121
    Join Date
    Aug 2005
    Location
    Sweden
    Beans
    407

    Re: "Hello Ubuntu" in every programming language

    FreeBASIC:

    dim name as string
    input "What is your name? ", name
    print "Hello " + name + ", welcome to ubuntu!"
    Don't peach linux. Melon it!

  2. #122
    Join Date
    Aug 2007
    Location
    Clemson, SC
    Beans
    240
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: "Hello Ubuntu" in every programming language

    Quote Originally Posted by rbprogrammer View Post
    why would you do that?? ..
    Well, i made it say
    Get off of ******* and reboot into Ubuntu, %ANSWER%
    for one thing


  3. #123
    Join Date
    May 2007
    Location
    UK
    Beans
    170
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: "Hello Ubuntu" in every programming language

    Did some one mention Matlab? I couldn't quite hear you ! Go on then:
    Code:
    % helloubuntu.m
    
    name = input('What is your name? : ');
    greeting = sprintf('Hello, %s! Welcome to Ubuntu!', name);
    disp(greeting);
    When you enter your name you have to enclose it in single quotes or Matlab will assume it is a variable name.

    I have another addition, I know it isn't strictly what was asked for but I don't have the time or patience to work out the full version! This code is largely useless considering it is one of the many thousands of ways this could be implemented! It is written in beatnik:
    Code:
    Per sloping:
    Baa, badassed areas!
    Jarheads' arses
          queasy nude adverbs!
        Dare unfold abase adder? *bares baser HA!
    Equalize, add bezique, bra emblaze.
      He (quezal), aeons liable. Label lilac "bulla," sauce!!
    TeRmInAtE... Ends, addends,
       duodena sounded amends opiate.
    Most of this code (is that the right word?) is from the Beatnik website but with some modifications and additions to make it compatible with the current English Scrabble scoring system (I know, that probably sounds really strange!). All it does is print 'Hi'! The interpreter I used came from here and is in the public domain. I hope that wasn't too bad a waste of space!

  4. #124
    Join Date
    Sep 2007
    Location
    $HOME="Nowhere"
    Beans
    216
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: "Hello Ubuntu" in every programming language

    Gambas Basic:
    Code:
    SUB Main()
              PRINT "Hello Ubuntu! Get off ******* (Windows)," + System.User + "!"
    END SUB
    Get Gambas first:
    Code:
    sudo apt-get install gambas
    * ENABLE UNIVERSE FIRST! *
    Now execute Gambas and make a terminal project, add a new module and make it a startup class. Now place the code under Gambas Basic:
    into it and run it!

    I don't know if this is really valid Gambas code. But I think it is.
    Last edited by LinuxGuy1234; November 7th, 2007 at 11:31 PM.
    *LFS USER #20429*
    My SLAX.org Profile
    *USER OF GENTOO!*

  5. #125
    Join Date
    Aug 2007
    Location
    Canada
    Beans
    459
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: "Hello Ubuntu" in every programming language

    LaTex

    Code:
    \documentclass[24p,letter]{report}
    \title{Hello, Ubuntu!}
    \author{Gnusci}
    \begin{document}
    \maketitle
    \end{document}
    Best, Gnusci

    "Never make a calculation until you know the answer." -- Wheeler, Spacetime Physics, pg 60.

  6. #126
    Join Date
    Jul 2007
    Beans
    81
    Distro
    Gutsy Gibbon Testing

    Re: "Hello Ubuntu" in every programming language

    you forgot mIRC Scripting and QBasic.. i could write now but i forgot both languages
    in mirc its something like
    Ubuntu echo Hello $$?="Whats your name?" , and welcome to Ubuntu
    put this in aliases and then write /Ubuntu in chat maybe it will work

  7. #127
    Join Date
    Mar 2006
    Location
    Canada
    Beans
    1,313
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: "Hello Ubuntu" in every programming language

    Damn! I read this whole thread, waiting in anticipation to re-write Wugglz's Python script with PHP! Damn you!

    Here it is with XHTML 1.1 compliance at least!

    CGI using PHP with W3C XHTML 1.1 compliance
    (improved from Robsku's)
    Code:
    <?php
    
    $name = trim($_POST['name']);
    $php_self = $_SERVER['PHP_SELF'];
    
    if (isset($name) && !is_null($name) && $name != ""){
    	$title = "Hello $name, Welcome to Ubuntu!";
    } else {
    	$title = 'Hello Ubuntu!';
    }
    
    print("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\"
    \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">
    <html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" >
    <head>
    <title>$title</title>
    </head>
    <body>
    <h1>$title</h1>
    <form action=\"$php_self\" method=\"post\">
    <p><input type=\"text\" name=\"name\" value=\"$name\" />
    <input type=\"reset\" value=\"Reset\" />
    <input type=\"submit\" value=\"Submit\" /></p>
    </form>
    </body>
    </html>");
    
    ?>
    BASH
    (improved from Tea4all's)
    Code:
    echo "Hello $USERNAME, Welcome to Ubuntu\!"
    TURING
    Good ol' Ontario High Schools :: http://en.wikipedia.org/wiki/Turing_...ng_language%29
    Code:
    var name : string
    put "What is your name? "
    get name
    put "Hello " , name , ", Welcome to Ubuntu!"
    Last edited by altonbr; October 14th, 2007 at 09:32 PM. Reason: added Turing -- then removed the word "strict" as per max.diems -- then forgot to escape the ! in the BASH code

  8. #128
    Join Date
    Sep 2007
    Location
    jhb south africa
    Beans
    54
    Distro
    Ubuntu 6.10 Edgy

    Re: "Hello Ubuntu" in every programming language

    Qbasic

    i think this is the code used qbasic long time ago...lol



    input " what is your name?:"a$
    print "hello"a$".welcome to ubuntu!"

  9. #129
    Join Date
    Jul 2006
    Location
    Don't remember anymore
    Beans
    141
    Distro
    Ubuntu 6.06 Dapper

    Re: "Hello Ubuntu" in every programming language

    Quote Originally Posted by altonbr View Post
    with W3C XHTML 1.1 Strict compliance
    Sorry, but isn't XHTML 1.1 just XHTML 1.1? I think they've gotten rid of Strict/Transitional/Frameset.
    "Who d'you know who's lost a buttock?" --Tonks
    Linux user #430538 (Machine #335692)/Ubuntu user 7858 (Machine #9033)
    myAge.today = myAge.yesterday++

  10. #130
    Join Date
    Mar 2006
    Location
    Canada
    Beans
    1,313
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: "Hello Ubuntu" in every programming language

    Quote Originally Posted by max.diems View Post
    Sorry, but isn't XHTML 1.1 just XHTML 1.1? I think they've gotten rid of Strict/Transitional/Frameset.
    Yup, you're correct. I'm still used to saying 'Strict' after I say 'XHTML' because I used XHTML 1.0 Strict for years.

Page 13 of 30 FirstFirst ... 3111213141523 ... 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
  •