PDA

View Full Version : Pascal Programming


fanatic
27-04-2006, 08:40 PM
Does anybody knows pascal programming here.. or ur friends know pascal programming??

sakumar79
27-04-2006, 11:31 PM
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

fanatic
28-04-2006, 10:05 PM
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