pls urgent help - Programmers Heaven

Howdy, Stranger!

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

Categories

pls urgent help

revlisrevlis Posts: 12Member
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

Comments

  • Phat NatPhat Nat Posts: 757Member
    : 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:
    [code]
    Begin
    WriteLn('2');
    WriteLn('3');
    WriteLn('5');
    WriteLn('7');
    WriteLn('11');
    WriteLn('13');
    {...}
    End.
    [/code]

    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.
Sign In or Register to comment.