Page 4 of 30 FirstFirst ... 2345614 ... LastLast
Results 31 to 40 of 297

Thread: "Hello Ubuntu" in every programming language

  1. #31
    Join Date
    Oct 2006
    Beans
    232

    Re: "Hello Ubuntu" in every programming language

    Whos going to attempt to write this in whitespace?

  2. #32
    Join Date
    Apr 2007
    Beans
    2,042

    Re: "Hello Ubuntu" in every programming language

    Whos going to attempt to write this in 1's and 0's?

  3. #33
    Join Date
    Dec 2005
    Beans
    527
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: "Hello Ubuntu" in every programming language

    Who is gogin to try and do the Ook version?

  4. #34
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: "Hello Ubuntu" in every programming language

    CGI using python

    hellocgi.py

    Code:
    #!/usr/bin/env python
    import cgi
    
    form = cgi.FieldStorage()
    print "Content-Type: text/html"
    print
    print
    print "<html><head><title>Hello World CGI</title></head>"
    print "<body><b>Hello " + form["name"].value + ". Welcome to Ubuntu!</b></body></html>"
    helloform.htm
    HTML Code:
    <html>
    <head>
    <title>Hello World form</title>
    </head>
    <body>
    <form name="input" action="hellocgi.py" method="post">
    What is your name? 
    <input type="text" name="name">
    <input type="submit" value="Submit">
    </body>
    </html>

    Brainf**k

    Code:
    >+++++[<+++++++++++++>-]<       //Set first byte to 'A'
    >+++++[<++++>-]<++.             //print 'W'
    >+++[<----->-]<.                //print 'H'
    -------.                        //print 'A'
    >++++[<+++++>-]<-.              //print 'T'
    -.                              //print 'S'
    >+++++[<---------->-]<-.        //print ' '
    >+++++[<++++++++++>-]<+++++++.  //print 'Y'
    ----------.                     //print 'O'
    ++++++.                         //print 'U'
    ---.                            //print 'R'
    >+++++[<---------->-]<.         //print ' '
    >++++[<++++++++++>-]<++++++.    //print 'N'
    -------------.                  //print 'A'
    ++++++++++++.                   //print 'M'
    --------.                       //print 'E'
    ------.                         //print '?'
    ++                              //set first byte back to 'A'
    >>,>,>,>,>,<<<<<<               //grab input into next 5 bytes
    +++++++.                        //print 'H'
    ---.                            //print 'E'
    +++++++..                       //print 'L' 'L'
    +++.                            //print 'O'
    >++++[<---------->-]<-------.   //print ' '
    >>.>.>.>.>.>                    //print the 5 input characters
    Last edited by Wugglz; July 12th, 2007 at 12:12 AM. Reason: Added more to brainf**k one

  5. #35
    Join Date
    Jan 2006
    Location
    Leuven, Belgium
    Beans
    3,414

    Re: "Hello Ubuntu" in every programming language

    Java with the newer Scanner class:
    Code:
    import java.util.Scanner;
    
    public class NameThing{
        public static void main(String[] args){
            System.out.println("Hi! What's your name?");
            System.out.println("Hello, "+new Scanner(System.in).next()+"! Welcome to Ubuntu!");
        }
    }
    (Who says java's always too long?)

  6. #36
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: "Hello Ubuntu" in every programming language

    Bash Using zenity

    Code:
    #!/bin/bash
    
    name=$(zenity --entry --title="Hello Ubuntu" --text="What is your name?")
    while [ -z $name ]; do
    	zenity --error --title="No name entered" --text="Please enter your name into the box"
    	name=$(zenity --entry --title="Hello Ubuntu" --text="What is your name?")
    done
    zenity --info --title="Hello Ubuntu" --text="Hello $name! Welcome to Ubuntu!"

  7. #37
    Join Date
    Jun 2007
    Location
    VA, USA
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: "Hello Ubuntu" in every programming language

    Boo
    Code:
    print "Hello! What is your name?"
    name = System.Console.ReadLine()
    print "Hello, ${name}! Welcome to Ubuntu!"

  8. #38
    Join Date
    Apr 2007
    Beans
    14,781

    Re: "Hello Ubuntu" in every programming language

    Whitespace
    Code:
    
    
    
    
    
    
    
    
    
    
    ...
    Tabs are heck to type

  9. #39
    Join Date
    Oct 2006
    Beans
    30
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: "Hello Ubuntu" in every programming language

    Gambas Console Program

    Code:
    ' Gambas class file
    
    STATIC PUBLIC SUB Main()
        
        DIM sName AS String
        
        PRINT "Hi!  What's you name?"
        INPUT sName
        PRINT "Hello " & sName & "! Welcome to Ubuntu!"
        
    END

  10. #40
    Join Date
    Dec 2006
    Location
    Australia
    Beans
    1,097
    Distro
    Xubuntu 15.10 Wily Werewolf

    Re: "Hello Ubuntu" in every programming language

    41 languages and variations so far. Keep rolling them out!

Page 4 of 30 FirstFirst ... 2345614 ... 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
  •