Program To Swap Two number Using Third Varible January 01, 2018 Programing In C No comments #include<conio.h> #include<stdio.h> void main() { int a,b,c=o; clrscr(); printf("Enter the two number"); scanf("%d%d",&a,&b); printf("Before swapping the value of A=%d \n B=%d",a,b); c=a; a=b; b=c; printf("\n After swapping the value of A=%d \n B=%d",a,b); getch(); } Output Enter the two number=35,48 Before swapping the value of A=35, B=48 After swapping the value of A=48, B=35 Share This: Facebook Twitter Google+ Stumble Digg Email ThisBlogThis!Share to XShare to Facebook
0 comments:
Post a Comment