Dibawah ini adalah program Aritmatika (Sinus, Cosinus, Tangen) menggunakan bahasa pascal.
program aritmatik;
uses wincrt;
var
x:real;
begin
clrscr;
gotoxy (18,3); writeln ('PROGRAM MENGHITUNG SINUS, COSINUS DAN TANGEN');
gotoxy (18,4); writeln ('--------------------------------------------');
gotoxy (18,5); write('Masukkan nilai dari x= ');
readln(x);
if x <0 then x:=abs(x);
gotoxy (18,6); writeln('nilai x=',x:5:2);
gotoxy (18,7); write('nilai x jika dimasukkan dalam fungsi sin,cos,tangen');
writeln;
gotoxy (18,8); writeln('-sinus = ',sin(x):9:3);
gotoxy (18,9); writeln('-cosinus= ',cos(x):9:3);
gotoxy (18,10); writeln('-tangen= ',arctan(x):9:3);
end.
Hasilnya :
program aritmatik;
uses wincrt;
var
x:real;
begin
clrscr;
gotoxy (18,3); writeln ('PROGRAM MENGHITUNG SINUS, COSINUS DAN TANGEN');
gotoxy (18,4); writeln ('--------------------------------------------');
gotoxy (18,5); write('Masukkan nilai dari x= ');
readln(x);
if x <0 then x:=abs(x);
gotoxy (18,6); writeln('nilai x=',x:5:2);
gotoxy (18,7); write('nilai x jika dimasukkan dalam fungsi sin,cos,tangen');
writeln;
gotoxy (18,8); writeln('-sinus = ',sin(x):9:3);
gotoxy (18,9); writeln('-cosinus= ',cos(x):9:3);
gotoxy (18,10); writeln('-tangen= ',arctan(x):9:3);
end.
Hasilnya :
wah programer aritmatika dasarnya sangat bermanfaat nih sobat....
ReplyDeletewew, pascal lageee...
ReplyDeletehadeehh..
punyeng
haha :D
@Asis Sugianto: sipp.. :)
ReplyDelete@Outbound Malang:hahhaa thu program yg dlu ane pelajari swktu kul sob..krna berhubungan dkomputer ane bnyk prog.pascal hsil pel. dikul sayang kl dihpus so ane sharing j sp tw ada yg butuh... ^_^
ReplyDeletebetmatik
ReplyDeletekralbet
betpark
tipobet
slot siteleri
kibris bahis siteleri
poker siteleri
bonus veren siteler
mobil ödeme bahis
PDZP
betmatik
ReplyDeletekralbet
betpark
tipobet
slot siteleri
kibris bahis siteleri
poker siteleri
bonus veren siteler
mobil ödeme bahis
N5M
bahis siteleri
ReplyDeletehttps://bahissiteleri.io
youwin
bets10
1xbet
BOR
dijital kartvizit
ReplyDeletereferans kimliği nedir
binance referans kodu
referans kimliği nedir
bitcoin nasıl alınır
resimli magnet
86NYJU
bursa
ReplyDeletemalatya
denizli
şirinevler
esenyurt
NGDREG
https://saglamproxy.com
ReplyDeletemetin2 proxy
proxy satın al
knight online proxy
mobil proxy satın al
ZD1M
شركة تنظيف سجاد وموكيت بالاحساء ESBH378RF9
ReplyDelete