examples of the Computer languages

 

There are 700+ Computer languages in the worlds. These are the used for make the programs. 


Following are the some languages examples:



C Program:

#include <stdio.h>

 

int main() {

   printf("Hello, World!");

   return 0;

}

Python Program:

 

print("Hello, World!")

 

Java Program:

 

public class HelloWorld {

   public static void main(String[] args) {

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

   }

}

 

C++ Program:

 

#include <iostream>

 

int main() {

   std::cout << "Hello, World!" << std::endl;

   return 0;

}

 

HTML Program:

 

<!DOCTYPE html>

<html>

<head>

    <title>Hello, World!</title>

</head>

<body>

    <h1>Hello, World!</h1>

</body>

</html>

 

JavaScript Program:

 

console.log("Hello, World!");

 

Ruby Program:

 

puts "Hello, World!"

 

Go Program:

 

package main

 

import "fmt"

 

func main() {

   fmt.Println("Hello, World!")

}

 

Rust Program:

 

fn main() {

   println!("Hello, World!");

}

 

Swift Program:

 

import Swift

 

print("Hello, World!")

Post a Comment

0 Comments