Ads 468x60px

Labels

Jun 7, 2012

#5 - Swapping Of Two Numbers [C]

#include"stdio.h"
void main()
{
int a,b,temp;
clrscr();
printf("\n Enter the values for A and B \n");
scanf("%d%d",&a,&b);
temp=a;
a=b;
b=temp;
printf(" A = %d \t B = %d",a,b);
getch();
}

No comments:

Post a Comment