Displaying a text in C,C++,Python & Java

Displaying a string on the screen would be the first program all the beginners would have coded. So now let us look at how to do that in different programming languages. If you find any errors or if you could suggest any change in the program, please let me know in the comment section.

C PROGRAM CODE

#include<stdio.h>
#include<conio.h>
int main()
{
printf("Hello World.\nThis is c.");
getch();
return(0);
}
view raw gistfile1.txt hosted with ❤ by GitHub
  

C++ PROGRAM CODE

#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
cout << "Hello World.\nThis is C++";
}
view raw gistfile1.txt hosted with ❤ by GitHub
  

PYTHON PROGRAM CODE

print "Hello World\nThis is Python."
view raw gistfile1.txt hosted with ❤ by GitHub
Simple one,isn't it?   

JAVA PROGRAM CODE

class Hellow{
public static void main(String args[]){
System.out.println("Hello World\nThis is Java");
}
}
view raw gistfile1.txt hosted with ❤ by GitHub
  

Comments