Code In Tech - The Ultimate World of Computer Technology

Sunday, 25 March 2012

C program for swap two values

SOURCE CODE:
#include<stdio.h>
#include<conio.h>
void main()
{
 int a,b,c;
 clrscr();
 printf("enter value for a :");
 scanf("%d",&a);
 printf("enter value for b :");
 scanf("%d",&b);

 c=a;
 a=b;
 b=c;
 printf("swaped value of a=%f & b=%f",a,b);
 getch();
}

No comments :

Post a Comment