Monday, June 11, 2012

Swap without Temporary variable

Assalamu Alaikum. Hope, you all are well by the grace of Almighty ALLAH. Today we learn how to swap values without using temporary variables. Let's look at the problem.

Problem: Write a program, interchange the values of two variables, say x and y without using temporary variable.

Solution:



















Thank you all..:)

0 comments:

Post a Comment