Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 4098
Number of posts: 14002

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Help, could be very easy. Posted by guttinja on 3 Feb 2012 at 4:44 AM
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:


Any tip will help, thanks!
Report
Re: Help, could be very easy. Posted by guttinja on 3 Feb 2012 at 4:53 AM
sorry for two equal topics, it showed some error, but made the topic anyway.
TC this topic so there's just one topic.
Report
Re: Help, could be very easy. Posted by Malekovits on 3 Feb 2012 at 5:30 PM
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.
Report
Re: Help, could be very easy. Posted by guttinja on 4 Feb 2012 at 5:09 AM
Just reinstalled PC, will check that later, but It's exatcly what I needed. Thanks a lot.
btw - what is that "uses wincrt;" ?
Report
Re: Help, could be very easy. Posted by Malekovits on 4 Feb 2012 at 6:32 AM
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!
Report
Re: Help, could be very easy. Posted by Misscherysa on 12 Mar 2013 at 3:37 PM
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.

Report
Re: Help, could be very easy. Posted by Misscherysa on 12 Mar 2013 at 3:38 PM
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.

Report
Re: Help, could be very easy. Posted by Misscherysa on 12 Mar 2013 at 3:40 PM
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




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.