/*WAP to swap two number*/
#include<stdio.h> #include<conio.h> void main() { int a,b,c; clrscr(); printf("enter value of a"); scanf("%d",&a); printf("enter value of b"); scanf("%d",&b); c=a; a=b; b=c; printf("\nswaped value of a is=%d",a); printf("\nswaped value of b is=%d",b); getch(); }
No comments:
Post a Comment