Dasturlash tillari haqida Tabiiy


Download 1.62 Mb.
bet10/11
Sana15.12.2020
Hajmi1.62 Mb.
#167379
1   2   3   4   5   6   7   8   9   10   11
Bog'liq
Dasturlash tillari haqida


Mil. Avv. 325-265 y.



program EKUK;

uses crt;

function EKUB(a,b:integer):integer;

begin

clrscr;

If (b=0) then

EKUB:=a

else

EKUB:=EKUB(b,a mod b);

end;

var

x,y:integer; {o’zgaruvchilar e’lon qilinayapti}

begin

writeln('sonlarni kirirting');

write('x='); {birinchi son }

readln(x); {birinchi sonni o’qib olish}

write('y='); {ikkinchi son}

readln(y); {ikkinchi sonni o’qib olish}

write('EKUK=' , (x*y)/EKUB(x,y)); { birinchi va ikkinchi sonlar ko’paymasini topillgan EKUK ga bo’lish}

readln;

end.




Download 1.62 Mb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9   10   11




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling