WRITE CODE IN ANY LANGUAGE TO SHOW "HELLO WORLD" ON THE SCREEN

@dholey (1383)
India
December 11, 2006 2:52am CST
in c :-\ void main() { printf("\n HELLO WORLD"); getch(); }
4 people like this
28 responses
• India
11 Dec 06
in PHP it is
@gudjhong (111)
• Philippines
11 Dec 06
another way of displaying hello world in php
1 person likes this
@gudjhong (111)
• Philippines
11 Dec 06
oh i forgot to write semicolon after "hello world"; to end my statement.....sorry
1 person likes this
• United States
14 Oct 07
As I recall reading on many occasions, "echo" is more efficient than "print".
@ram_18y (275)
• India
12 Dec 06
in c++ class helloworld { public: helloworld world { cout
1 person likes this
@dholey (1383)
• India
12 Dec 06
i think there is some problem in this code i will try to rewrite code : class helloworld { public : helloworld()// here is the actual constructor ... i think the word "world " will //give error here { cout
1 person likes this
@dholey (1383)
• India
12 Dec 06
but the way you make program is very good ... keep it up
1 person likes this
@bkpdp1 (920)
• India
11 Dec 06
In VB Write Msgbox, "Hello World"
1 person likes this
@dholey (1383)
• India
11 Dec 06
please be specific with the language name and please don't post in existing language add comments in existing laguagen...
1 person likes this
@raghwagh (1527)
• India
11 Dec 06
In jsp we can write Hello World as follows //Save file as HelloWorld.jsp and run on some servlet enabelld server like jboss or websphere
1 person likes this
@dholey (1383)
• India
11 Dec 06
gr8 people i am happy that every one here is so helping , we have seen output statements in c, vb,.net,php ..... somebody add c++ code, sql.... , vc++ ... waiting for yue response ... at the end , if no body posts .... i will add code ....
1 person likes this
• India
11 Dec 06
Here is the python code for printing Hello World. print 'Hello World'
1 person likes this
• India
11 Dec 06
I tried to include the c++ code also but not sure it crashes the myLot site. Note sure whats happening.
1 person likes this
@dholey (1383)
• India
12 Jan 07
i think when we use greater than or less then symbol, mylot doesn't allow the post
1 person likes this
• India
16 Jan 07
For VC++ type AfxMessageBox("Message");
1 person likes this
@dholey (1383)
• India
16 Jan 07
please tell me something abut afx , i know vc++ but have not yert encountered the full form of afx , we can also use MessageBox("HELO WORLD "); am i tight?
@ankagar (1034)
• India
11 Dec 06
that is very simple
1 person likes this
• India
11 Dec 06
In Visual Basic .Net we will write Private Sub Form1_load(byVal sender as object, byVal e as EventAgrs) Handles myBase.Load Msgbox("Hello World") End Sub
@gudjhong (111)
• Philippines
11 Dec 06
here's are code for java user... public class helloWorld { public static void main(String args[]){ System.out.println("hello world"); } }
@xeroms (16)
• Portugal
11 Dec 06
In prolog: write('Hello world'), nl.
1 person likes this
• Singapore
11 Dec 06
1 person likes this
@saumav (180)
• India
15 Dec 06
I'll write it in some codes:
@saumav (180)
• India
15 Dec 06
C: printf("\nHello World"); In Java Console: System.out.println("Hello World"); In Java GUI (swing) new javax.swing.JOptionPane().showMessageDialog(null, "Hello World");
@saumav (180)
• India
15 Dec 06
In VB msgBox "Hello World"; In Shell script: echo "Hello World" In JSP: out.println("Hello World"); in Servelet: response.write("Hello World"); //where response is the HttpServletResponse type object in method doGet or doPost. In PHP: print("Hello World"); In ASP: Response.write("Hello World"); In C# Console Console.writeLine("\nHello World"); I think tht will be enough f
@saumav (180)
• India
15 Dec 06
Oh I'm forgetting C++ C++: cout
• India
27 Dec 06
JAVASCRIPT (3 ways to show mesage) document.write("HELLO WORLD"); alert("HELLO WORLD"); confirm("HELLO WORLD"); FOXPRO ? "hello world" @10,10 say "hello world" vb msgbox "hello world" vc++ afxMessageBox("hello world"); c:- TEXTMODE printf("\n hello world "); cprintf("hello world"); puts("\n HELLO WORLD"); GRAPHICS MODE outtext("hello world"); outtextxy(10,10,"hello world"); c++ cout
1 person likes this
@kemadruma (148)
• India
8 Nov 07
public class ankit{ public static void main(){ system.out.println("Hello World"); } }
@dholey (1383)
• India
19 Oct 09
java code!!
@_Greeneye_ (1526)
• India
17 Dec 06
hey u started nice discssions i dont know ny programming but soon ill learn frm ur discussion
@dholey (1383)
• India
17 Dec 06
i am here to help all people like you , you select any language and get the compiler of that language ... and read chapters here and practice on your pc....
@deepuj (591)
• India
18 Dec 06
In RPG-ILE (AS/400) Language c DSPLY 'Hello World'
@dholey (1383)
• India
18 Dec 06
thanks for your participation in this dicussions
• Canada
19 Apr 07
In Ruby: puts 'Hello world' or print 'Hello world'
• Philippines
10 Apr 07
it seems nobody is using pascal.. write("Hello World");
@web2samus (255)
• Uruguay
6 Apr 07
Scheme: (display 'HELLO WORLD)
@sumit057 (227)
• India
5 Jul 10
IN SPRINGS displaying hello world:- 1) javatest file where main file resides :- public class Spring3HelloWorldConfigTest { public static void main(String[] args) { //Initialize IoC Container or Inversion of Control // load up the xml rather config file using IOC AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext( Spring3HelloWorldConfig.class); System.out.println("Calling Bean method: sayHello()"); //Retrieve the bean from Container // Spring3HelloWorld is the class difined where we write method to do our task // geetBean will get the bean id defined ie @Bean spring3HelloWorld in our case Spring3HelloWorld myBean = (Spring3HelloWorld) context.getBean("spring3HelloWorld"); myBean.sayHello(); } } 2:-Configuration file @Configuration public class Spring3HelloWorldConfig { public @Bean Spring3HelloWorld spring3HelloWorld() { return new Spring3HelloWorld(); } } 3:-The method class file public class Spring3HelloWorld { public void sayHello()// method which prints whatever in sysout { System.out.println("Hello World"); } } Runing the test file gives us the output:- Hello World