Writeln('n ni kiriting')


Download 13.44 Kb.
Sana11.12.2020
Hajmi13.44 Kb.
#165147
Bog'liq
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.

  1. uses crt;

  2. var s:string;

  3. a:array[1..123456] of integer;

  4. i,j,k,c:integer;

  5. begin



  6. writeln('satrni kiriting:');

  7. readln(s);

  8. for i:= 1 to length(s) do begin

  9. val(s[i],k);

  10. a[i] := k;

  11. end;

  12. for i:=1 to length(s) do

  13. for j:=i+1 to length(s) do

  14. if(a[i]

  15. c := a[i];

  16. a[i] := a[j];

  17. a[j] := c;

  18. end;

  19. writeln('natija:');

  20. for i:= 1 to length(s) do write(a[i]);

  21. readln;



  22. end.

Download 13.44 Kb.

Do'stlaringiz bilan baham:




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