PHP

11/19/2023

C, C++, JAVA, C# [001] Syntax

C

#include <stdio.h>


int main() {

  printf("Hello World!");

  return 0;

}


C ++

#include <iostream>

using namespace std;


int main() {

  cout << "Hello World!";

  return 0;

}


JAVA


public class Main {

  public static void main(String[] args) {

    System.out.println("Hello World");

  }

}


C#

using System;


namespace HelloWorld

{

  class Program

  {

    static void Main(string[] args)

    {

      Console.WriteLine("Hello World!");    

    }

  }

}

No comments:

Post a Comment

Featured Post

Coating chocolate using methods like panning

 Coating chocolate using methods like panning involves careful temperature control throughout the processing period to achieve the desired r...

Popular Posts