Pascal Programming

Status
Not open for further replies.

sakumar79

Technomancer
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
 
OP
fanatic

fanatic

Broken In
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
 
Status
Not open for further replies.
Top Bottom