Q. Interchange two variable ?
THE OUTPUT WOULD BE
#include<stdio.h>
#include<conio.h>
void main( )
{ clrscr( );
int a,b,t;
printf("Enter a :");
scanf("%d",&a);
printf("Enter b :");
scanf("%d",&b);
t=a;
a=b;
b=t;
printf("Interchange value of a=%d",a);
printf(" Interchange value of b=%d",b);
getch( );
}
No comments:
Post a Comment