Bhuvan InfoTech Android App

Download our Android App and browse Technical News, Projects, Computer Tricks more easily with lots of Interesting Features.

Tuesday, June 14, 2016

Swap values of two Variables | C program

#include<stdio.h>
int main()
{
 int a,b,c;

 printf("Enter value of First Variable : ");
 scanf("%d",&a);
 printf("\nEnter value of Second Variable");
 scanf("%d",&b);
 c=a;
 a=b;
 b=c;
 printf("A : %d",a);
 printf("\nb : %d",b);
 return 0;
}
Bhuvan Arora

No comments:

Amazing Deal !