Help, could be very easy.

Hello, just started learning Pascal.
1. How to write symbols using for.. to.. do. Need to have cycle in cycle too.
Can't find anywhere how to do it.
The result shoudl be something like this:
[img=http://www.bildites.lv/images/oq600gexc5fbyg68c4gg.jpg]

Any tip will help, thanks!

Comments

  • sorry for two equal topics, it showed some error, but made the topic anyway.
    TC this topic so there's just one topic.
  • Quite simple! Tell me if its not what you want.

    program aaa;
    uses wincrt;
    var i,j:integer;
    begin

    for i:=1 to 5 do
    begin
    for j:=(6-i) downto 1 do write('*');
    writeln;
    end;

    end.
  • Just reinstalled PC, will check that later, but It's exatcly what I needed. Thanks a lot.
    btw - what is that "uses wincrt;" ?
  • Glad that I helped! Its from the borland pascal, old compiler to output a windows-like terminal, not a dos-like terminal as the photo you have. Anyway use only the main loops!
  • diogonal matrix 10*10
    first Special array generation and display on the screen in rows and columns
    Second asingular matrix elements record in to vector, screen output
    3rd Search for vector element, which coincides with the given element X (search element
    asks the user). Envisage a situation in which a given element in the array can not be.
    5th Vector sorting in ascending order by the method:
    b) simple sort of insert
    6th Vector output on the screen
    7th sorted vector rewrite back to the matrix and the matrix output to screen in rows and
    columns.

  • diogonal matrix 10*10
    first Special array generation and display on the screen in rows and columns
    Second asingular matrix elements record in to vector, screen output
    3rd Search for vector element, which coincides with the given element X (search element
    asks the user). Envisage a situation in which a given element in the array can not be.
    5th Vector sorting in ascending order by the method:
    b) simple sort of insert
    6th Vector output on the screen
    7th sorted vector rewrite back to the matrix and the matrix output to screen in rows and
    columns.

  • diogonal matrix 10*10
    first Special array generation and display on the screen in rows and columns
    Second asingular matrix elements record in to vector, screen output
    3rd Search for vector element, which coincides with the given element X (search element
    asks the user). Envisage a situation in which a given element in the array can not be.
    5th Vector sorting in ascending order by the method:
    b) simple sort of insert
    6th Vector output on the screen
    7th sorted vector rewrite back to the matrix and the matrix output to screen in rows and
    columns.
    Please Help me

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories