LED PANEL

Google It, You'll Get It.

Monday, January 31, 2011

Inter-changing the values of two variables

#include

main()
{
int x, y, z;

printf("enter the first value \n");
scanf("%d",&x);
printf("enter the second value \n");
scanf("%d",&y);

z = x;
x = y;
y = z;

printf("\nx = %d", x);
printf("\ny = %d", y);
}

No comments:

Post a Comment