Farklı dillerde "Hello, World!"

Arslan

Sabır; yüzünü ekşitmeden acıyı yudumlamaktır.
Onaylanmış Üye
5 Kas 2020
118
9
Çevrimiçi zamanı
13h 45m
18
Best answers
0
Oyuncu
Metin2, CS:GO
Bu yazımda farklı dillerde "Hello World!" yazımını göstereceğim. Başlayalım!

Assembly(Linux)
Kod:
section .text

global _start

section .data

msg db 'Hello, world!',0xa
len equ $ - msg

section .text

_start:
mov edx,len
mov ecx,msg
mov ebx,1
mov eax,4
int 0x80
mov ebx,0
mov eax,1
int 0x80

Java:

Java:
public class Furkaninkosesi {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}

C

C:
#include <stdio.h>
int main() {
printf("Hello, World!");
return 0;
}

C++

C++:
#include <iostream>

int main() {
std::cout << "Hello World!";
return 0;
}

Python

Python:
print("Hello, World!")

Haskell

Kod:
main = putStrLn "Hello, World!"

D

Kod:
import std.stdio;

void main()
{
writeln("Hello, World!");
}

Dart

Kod:
main(){
print("Hello, World!")
}

PHP


PHP:
<?php
echo 'Hello, World'

Delphi

Kod:
program HelloWorld;
begin
WriteLn('Hello World');
end.

Swift

Swift:
import Swift
print("Hello, World!")

Haxe

Kod:
class Main {
static public function main():Void {
trace("Hello World");
}
}

C#


C#:
using System;
class HelloWorldprgrami{
public static void main(String[] args){

Console.WriteLine("Hello, World");

}
}

Objective - C


Objective-C:
#import <stdio.h>
#import <Foundation/Foundation.h>
int main(int argc, const char * argv[]) {
@autoreleasepool { //Zorunlu değil.

NSLog(@"Hello, World!");
}
return 0;
}

Pascal

Kod:
program Hello;
begin
writeln ('Hello, world.');
end.

Eiffel


Kod:
class
HELLO

create
make

feature

make
do
print ("Hello World%N")
end

end

Fortran


Kod:
program hello
print *, "Hello World!"
end program

Go


Kod:
package main
import "fmt"
func main() {
fmt.Println("hello world")
}

JavaScript


JavaScript:
alert("Hello, World!");
 

Fendrix

𝓣𝓱𝓮 𝓑𝓮𝓼𝓽 𝓞𝓷𝓮
Co Admin
Hosting Yetkilisi
Teknik Sorumlu
Hakem
Yarışma Organizatörü
Vip Üye
21 Mar 2021
1,314
371
Çevrimiçi zamanı
7d 8h 48m
153
Best answers
0
Oyuncu
Metin2
Teşekkürler
 
Üst