So by starting as a simple post toward my contribution for programming, lets see how messages can be displayed in different programming languages.
printf() function from
stdio.h library we write the following instructions for computer to print a message “Hello World
cout object from
iostream.h library we write the following instructions for computer to print a message “Hello World”.
cout object uses an operator called insertion (‘<<’) which is used to print everything within it on the console.
Class System comes with various console objects like
err which can be used for various purpose. The System library comes from
java.lang package which is default imported by Java everytime it runs.
out object from System class helps to redirect output towards the
import java.lang.*; // importing java lang library
The class System has various objects predefined in C# library, so we use System library & gain the class called “Console” which is attached to the console i.e. Screen & invoke static method called write() using that Console class-name.
Basic functionality is to print everything within quoutes.
PHP is a powerful language for web, in-order to print any message we just use
echo keyword & whatever typed in double or single quotes is displayed as message. Both single & double quotes has separate meaning & we will come across it some other day.
A php program is always enclosed with “
<?php STATMENTS HERE ?>“
So we end up here now, I hope you have come to know how to display message in 5 different languages, I will come back with more languages very soon.