Swapping values
Two number are input through the keyboard into location C and D,Write a program to interchange the content of C and D.
#include
#include
void main(void)
{
int a,c,v,d;
printf(“Enter the numbers:”);
scanf(“%d%d”,&d,&c);
a=d;
v=c;
printf(“The values are %d \n %d”,v,a);
getch();
}
Comments
Post a Comment