Search For
Flagging a Snippet, takes the snippet to Moderator Attention;


0
#include<stdio.h>
#include<conio.h>
void main()
{
int n,a,b;
clrscr();
printf("enter value of a\n");
scanf("a:-%d\t",&a);
printf("enter value of b\n");
scanf("b:-%d\t",&b);
a=a+b;
b=a-b;
a=a-b;
printf("after swapping a value is :- %d\t",a);
printf("after swapping b value is :- %d\t",b);
getch();
}
Vote! You feel this code is working like charm ? Go a head Login and Press up arrow.
Didn't work ?, press down arrow and let us know the error in comments

Comments