Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 4095
Number of posts: 14004

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

Report
pls urgent help Posted by revlis on 28 Jul 2008 at 7:09 AM
pls someone help me with this assignment,
a program in pascal that will print prime numbers between
1 and 100.
pls somone help fast
breaktrough
Report
Re: pls urgent help Posted by Phat Nat on 30 Jul 2008 at 8:57 PM
: pls someone help me with this assignment,
: a program in pascal that will print prime numbers between
: 1 and 100.
: pls somone help fast
: breaktrough

I won't write the whole thing for you, but this is a start:
Begin
     WriteLn('2');
     WriteLn('3');
     WriteLn('5');
     WriteLn('7');
     WriteLn('11');
     WriteLn('13');
     {...}
End.


You could also use an equation to do this so that you don't need to figure them all out manually. If you want to try that method, give it a go and then post where you get stuck and we'll help.



 

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.