Posts

Showing posts with the label Hello World

19 ways to print Hello World with C++

Image
Print Hello World 19 different ways with C++ *Featured Code Created by  Morpheus C++ /* THANK YOU GUYZ FOR SUPPORT & SUGGESTIONS check out the various methods of printing hello world plz contribute with comments if u hv got other printing ideas tooo */ #include <iostream> #include <string> #include <stdio.h> #include <unistd.h> //need unistd above for using system call                                using namespace std; int main()  { //simplest way would be cout<<"1.Hello World"<<endl; /*or the old but precise C way with printf but gotta use that #include<stdio.h> at the top*/ printf("2.Hello world\n"); /*puts() function works fine too, but we should avoid using it as it causes lots of warnings in many compilers*/ puts("3.Hello world "); /*printf can also be used for str...

Hello World in 10 Programming Languages

Image
Java Hello World public class Hello {       public static void main(String[] args){           System.out.println("Hello World!");} } Click here to see this code run HTML5 Hello World <!DOCTYPE html> <html>     <head>         <title>Page Title</title>     </head>     <body>         <h1>Hello World</h1>     </body> </html> Click here to run this code Python Hello World print("Hello World") Click here to see this code run C Hello World #include <stdio.h> int main() { printf("Hello World");      return 0;} Click here to see this code run C++ Hello World #include <iostream> using namespace std; int main() { cout << "Hello W...