September 2018 2 13 Report

Mam napisać taki program:

Napisz program wyswietlający na ekranie nsatępujący wzorek: (n-ilość wierszy i kolumn), dla n=5 mamy:

A

A

A

A

A

(na ukos)

I napisałam takie coś:

uses CRT;
Var
n,i:integer;
Begin
Writeln('Ile ma byc wierszy i kolumn?');
Readln(n);
repeat
for i:= 1 to n do
begin
write(' ');
end;
writeln('A');
n := n -1;
until (n<0);
Readln;
End.
Tylko coś mam źle, bo jak wpisze,np. 3 to mi 4razy A sie pojawia.
Niech ktoś mi to poprawi, błagam.
More Questions From This User See All

Recommend Questions



Life Enjoy

" Life is not a problem to be solved but a reality to be experienced! "

Get in touch

Social

© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.