Writeln('n ni kiriting')
Download 13.44 Kb.
|
pask
uses crt; var n, i :integer; begin writeln('n ni kiriting'); readln(n); for i:= 1 to trunc(sqrt(n)) do write(i, ' '); readln; end.
7. uses crt; var a,b,m,k:real; i:integer; begin
writeln('A B M ni kiriting:'); readln(a,b,m); k:=b; while(b < a) do begin i:=i+1; b:=b*(1+m/100); end; writeln('kapitalizatsiyani hisobga olgan holda ',i, ' yil.'); writeln('kapitalizatsiyani hisobga olmagan holda esa ', (a/b-1)*100/m); readln;
end. uses crt; var s:string; a:array[1..123456] of integer; i,j,k,c:integer; begin writeln('satrni kiriting:'); readln(s); for i:= 1 to length(s) do begin val(s[i],k); a[i] := k; end; for i:=1 to length(s) do for j:=i+1 to length(s) do if(a[i] c := a[i]; a[i] := a[j]; a[j] := c; end; writeln('natija:'); for i:= 1 to length(s) do write(a[i]); readln; end. Download 13.44 Kb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling