Python
Python 3Code:from os import getlogin print "Hello, " + getlogin() + "! Welcome to Ubuntu"
Code:from os import getlogin print ("Hello, " + getlogin() + "! Welcome to Ubuntu")
Python
Python 3Code:from os import getlogin print "Hello, " + getlogin() + "! Welcome to Ubuntu"
Code:from os import getlogin print ("Hello, " + getlogin() + "! Welcome to Ubuntu")
noticed that no one did a console app VB.NET one...
Code:Module Module1 Dim name As String Sub Main() Console.WriteLine("Hello, what is your name?") name = Console.ReadLine() Console.WriteLine("Hello, " + name + " welcome to ubuntu") Console.WriteLine("press any key to continue") Console.ReadKey() 'not needed but i like it End Sub End Module
In Matlab, you could use the following so you do not have to use quote marks to assign the input as a string:
the 's' in the input function tells Matlab to expect a string as the input.Code:name = input('What is your name? : ', 's'); disp(['Hello ' name ' Welcome to Ubuntu!'])
Elbarto
Yes, but it's not complete, I think.
http://lolcode.com/
lua:
PHP Code:
print("Hello "..io.read().."! Welcome to Ubuntu!")
HLA (high level asm) (not checked yet due to lack of assembler but i will do it soon)
Code:program hello; #include(stdlib.hhf); begin hello; stdout.put("What is your name?" nl); //this is a comment, nl means new line stdin.get(eax); sotdout.put("Hello" eax "welcome to Ubuntu!); end hello;
Haskell (3rd entry, but this is different -- less imperative):
Code:main = putStrLn "Hi what is your name?" >> readLn >>= (\n -> putStrLn $ "Hello, "++n++" welcome to Ubuntu!")
QBasic comes to mind. But I wouldn't recommend using Basic, it teaches you bad habits (GOTO etc.).Hey, I'm new here. I love basic programming, is it available in
UBUNTU / LINUX or anything similar?
Thanks
Last edited by Taidgh; January 5th, 2009 at 12:15 AM.
Bookmarks