Simple C Programing with TrazoR
http://simplec.tk/
LED PANEL
widgeo.net
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment