17
begin
writeln (`Dala hovliga borish
va qaytish qiymatini hisoblash`);
write (`Dala hovligacha masofa (km)
`);
readln (mas);
write (`Benzin sarfi (100
km masofaga, litr)
`);
readln (sarf);
write (`Litr benzin bahosi (so`m)
`);
readln (baho);
sum:=2*mas/100*sarf
*baho
;
writeln;
writeln (`Dala hovliga borish va qaytish qiymati`, sum:6:2,`so`m.
`);
readln;
end.
4-masala: Silindr sirt yuzasini hisoblash.
var
r: real; {silindr asosi radiusi}
h: real; {silindr balandligi}
s: real; {silindr sirt yuzasi}
begin
writeln (`Silindr
sirt yuzasini hisoblash`);
writeln (`Boshlang`ich qiymatlar:
`);
write (`Asos radiusi (sm)
`);
readln (r);
write (`Silindr balandligi (sm)
`);
readln (h);
Do'stlaringiz bilan baham: