The Tech World..!!
C Program to swap 2 Numbers
#include<stdio.h>
int main()
{
int a, b, temp ;
printf("Enter 2 Numbers \n");
scanf("%d \t %d",&a,&b);
temp = a;
a = b;
b = a;
printf("The swapped Numbers are ");
printf("a = %d \t b= %d \n",a,b);
return 0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment