Ex: Write a C program for swap two numbers using function. How to write a C program for swap two numbers using function. C program for swap two numbers using function.
Input from user:
Enter two numbers: 10 20
Expected output:
Numbers before swap:
number1=10
number2=20
Numbers after swaping:
number1=20
number2=10
Input from user:
Enter two numbers: 10 20
Expected output:
Numbers before swap:
number1=10
number2=20
Numbers after swaping:
number1=20
number2=10