Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
% hello world program
-module(helloworld).
-export([start/0]).
start() ->
io:fwrite("Hello, world!
Nama :
Farhan Sungkar
TTL :
Madiun, 7 Agustus 1999
Asal daerah :
Surakarta
Motto hidup :
Live your life
Alasan memilih informatika :
Karena suka dengan hal-hal yang berkaitan dengan teknologi dan komputer\n").
% hello world program
-module(helloworld).
start() ->
fwrite("
Hello,World!
Nama :
Fitradi Rizki Nugraha
TTL :
Magelang, 31 Maret 2000
Asal Daerah :
Magelang
Motto Hidup :
Bergunalah bagi sesama
Alasan Memilih Informatika :
Ingin memahami konsep teknologi
").
% helloworld
-module(helloworld).
% import function used to import the io module
-import(io,[fwrite/1]).
% export function used to ensure the start function can be accessed.
-export([start/0]).
start() ->
fwrite("
Hello, World!
Nama : Bintang Eka Putra
TTL : Sukoharjo, 31 Oktober 1999
Asal : Sukoharjo
Motto :
Jangan menyesali perbuatanmu, jika yang kamu lakukan adalah yang terbaik
Alasan memilih informatika :
Informatika itu fleksibel dan akan sangat dibutuhkan
").
-module(helloworld).
-import(io,[fread/1,fwrite/2]).
-export([start/0]).
start() ->
Salary = [90000,75000,65000,50000],
Grade = A,B,C,D,
io:fwrite("Welcome to Salary Bonus Calculation"),
{g} = io:fread("~g").
if
A == 90000 ->
io:fwrite("A is equal to 20% Bonus You Get");
B == 75000 ->
io:fwrite("B is equal to 15% Bonus You Get");
C == 65000 ->
io:fwrite("C is equal to 10% Bonus You Get");
D == 50000 ->
io:fwrite("D is equal to 5% Bonus You Get");
true ->
io:fwrite("False")
end.
%A = 90000,
%case A of
%io:fwrite("The value of A is 20% Bonus");
%io:fwrite("The value of B is 15% Bonus")
% B = 75000,
% case B of
% io:fwrite("The value of B is 15% Bonus");
% C = 65000,
% case C of
% io:fwrite("The value of C is 10% Bonus");
% D = 50000,
%case D of
% io:fwrite("The value of D is 5% Bonus");
% end.
%Result = X + Y,
%io:fwrite("~w",[Result]).
% io:fwrite("~w",[1+1]).