1. Hey Guest Did you know you can win an Honor 10 phone worth ₹33,000 and an additional ₹70,000 in paytm vouchers, just by replying to some threads and taking part in the discussions happening in the Honor Hub?

    What are you waiting for? Start commenting and start winning! Remember to read the instructions posted here.

    Dismiss Notice

Pascal Programming

Discussion in 'Programming' started by fanatic, Apr 27, 2006.

Thread Status:
Not open for further replies.
  1. fanatic

    fanatic New Member

    Joined:
    Sep 16, 2004
    Messages:
    60
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Mumbai (Melbourne now)
    Does anybody knows pascal programming here.. or ur friends know pascal programming??
     
  2. sakumar79

    sakumar79 Active Member

    Joined:
    Nov 28, 2004
    Messages:
    2,441
    Likes Received:
    9
    Trophy Points:
    38
    Location:
    Madurai
    Learnt pascal in my first year at college... That was a long time ago... Now, I hardly remember the syntax except the basics...

    Why do you ask the question? Do you have some program to debug? If so, post the code... If you want to get a feel for how many people know pascal, post it as a poll... The post above should, as such, be in the general section if there is nothing else to this...

    Waiting for a day for your reply before reporting thread...

    Arun
     
  3. OP
    OP
    fanatic

    fanatic New Member

    Joined:
    Sep 16, 2004
    Messages:
    60
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Mumbai (Melbourne now)
    can anybody help me in this program in pascal??

    Write a procedure that takes in two integer parameters, named value1 and value2. The procedure
    must swap their values. The main body of the program should read in two integer values from the
    user, print the values with their variable names, swap the values (using your swap procedure), and
    print the values again. Write a unit test to check that this procedure works; this test should use the
    following pseudo-code.
    a. Declare variables x and y as Integers
    b. Set x to -1
    c. Set y to 1
    d. Call Swap(x,y)
    e. Check that x = 1
    f. Check that y = -1
     
Thread Status:
Not open for further replies.

Share This Page