Program 3.
Write a program to receive 2 values and
swap these values
Answers
Answered by
1
Explanation:
#include<studio.h>
void main()
{
int a, b, temp;
printf("Enter a") ;
scanf(&a) ;
printf("Enter b") ;
scanf(&b) ;
temp = a;
a=b;
b=temp;
printf("swapped") ;
printf ("a", a) ;
printf ("b", b) ;
}
Similar questions