Monday, 22 June 2015

c progrme for swaping two numbers

#include<stdio.h>
#include<conio.h>
void main()
{
       int a,b,c;
       printf("enter a value and b value");
       scanf("%d%d",&a,&b);
       c=a;
       a=b;
       b=c;
       printf("after swapping");
       printf("%d%d",a,b);
}

No comments:

Post a Comment