Skip to main content

Software Kalkulator (Build Pascal)

 hallo  sahabat blogger yang setia sama blog saya, hehehe
berharap banget saya ada yang langganan di sakera blogger, :D dah lama saya tidak posting, dah beberapa bulan pa hampir setahun ya?, :( saya lama tidak posting karena ada masalah sama laptop. dan internetnya jg di putus, :(
tapi jangan khawatir kalau ada sahabat blogger yang menunggu postingan dari sakera blogger, sekarang saya mau posting script garapan, yang baru-baru ini selesai.
mau tau gak script apa?
langsung ja ke TKP:
script membuat kalkulator berbasis DOS, dengan bahasa pemrograman PASCAL,









uses crt;

label awal;

var a,b,d:real; k,p,m,l,c:char;
begin
clrscr;
writeln('K = KALI ++ P = TAMBAH ++ M = KURANG ++ L = BAGI');
writeln('================================================');
awal : write('masukkan tanda operasional - '); readln(c);


if  (c ='k') then begin
write('# masukkan angka pertama - '); readln(a);
write('# masukkan angka kedua - '); readln(b);
d:=a*b;
write('| hasil kali = ',d:0:2)
end else
if c='p' then begin  write('# masukkan angka pertama - '); readln(a);
write('# masukkan angka kedua - '); readln(b);
d:=a+b;
write('| hasil tambah = ',d:0:2)
end     else
if c='m' then begin   write('# masukkan angka pertama - '); readln(a);
write('# masukkan angka kedua - '); readln(b);
d:=a-b;
write('| hasil kurang = ',d:0:2)
 end else
if c='l' then begin   write('# masukkan angka pertama - '); readln(a);
write('# masukkan angka kedua - '); readln(b);
d:=a/b;
write('| hasil bagi = ',d:0:2)
end
else begin write('** Huruf yang anda masukkan salah, tekan enter untuk kembali **');
end;
readln; goto awal;

end.

 copas script di atas ke dalam notepad, lalu ganti extensinya dengan (.pas) tanpa tanda kurung, lalu kalian open dengan program pascal dan di compile (alt+f9).

script di atas bisa kalian modifikasi sendiri, apabila ada yang mau di tanyakan dari script di atas, kalian bisa tanya lewat  kolom komentar.
selamat menikmati :D :D :D

Popular posts from this blog

The Advantage of Using HTTP Default Authorization Scheme #DigitalSecurity

pixabay.com Hello Everyone, This day I would like to introduce you to the default header for authorization in HTTP. HTTP auth scheme is a guide or standardization scheme for the authorization header in the HTTP protocol. this standard is using key Authorization in the header and followed by a value that usually filled by key or token. for example : Authorization : <type> <key/token> this standard is the solution of the key header for authorization that really random was provided by developers to build an authorization header for their application, in my experience, developers used to "token" for their key in the header that usually followed by the hash value. the random key makes developers using more time for writing code for getting header key and validating the value which is you could use the library and focus on writing the logic of your application. Depend on Mozilla site , HTTP auth scheme divided by 4 types, such as : Basic  (see  RF

Typer shark Deluxe free full crack

Typer shark Deluxe : software yang akan membantu kita untuk belajar mengetik keyboard dengan cara 10jari, untuk agan2 yang baru belajar komputer pasti teknik pertama yang dilakukan adalah dengan 11jari (kanan 1 + kiri 1 = 11)hahahaha, softaware ini sangat menarik, karna kita belajar 10jari dengan bermain game.. n gamenya interaktif,,, pkoqnya yang tadinya mengetik 11jari, dalam waktu seminggu pasti bisa lancar 10jari... syaratnya harus tekunn...  kalo agan mau ngunduh silahkan : Download screenshot:

Automatic API Documentation Swagger in Golang #GolangDev

pixabay.com In this article, I'll explain how to generate an API blueprint instantly using SwagGo in Golang. API blueprint is a document that contains a bunch of API endpoints, its slickly same as documentation but less description, it's allow another programmer to read and see all the available endpoint and try it out with sandbox feature. Swagger is one of the most used API blueprints right now, it's available in free but limited usage. if you wanna use the free credit, you need to understand YAML notation, you can read the example notation in swagger official documentation. but again, it's really hard and takes an expensive time to arranges all the notation to achieve a good API blueprint. fortunately, there are tools in Golang that allow us to generate the YAML notation and automatically generate the blueprint page with only using markup notation, and it's FREE unlimited for self-host, insane right? SwagGo tools are available here , the documentation is very cl