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
1 Attachment(s)
Re: "Hello Ubuntu" in every programming language
Next version of attempted index.
Re: "Hello Ubuntu" in every programming language
Quote:
Originally Posted by
pp.
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?
Re: "Hello Ubuntu" in every programming language
Quote:
Originally Posted by
Anurag_panda
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.
Re: "Hello Ubuntu" in every programming language
Quote:
Originally Posted by
Anurag_panda
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.
Re: "Hello Ubuntu" in every programming language
Quote:
Originally Posted by
pp.
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.
Re: "Hello Ubuntu" in every programming language
Quote:
Originally Posted by
nvteighen
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.
Re: "Hello Ubuntu" in every programming language
Quote:
Originally Posted by
LaRoza
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
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
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:
See web page for details