Write a C Program to Swap Two Numbers

Write a C Program to Swap Two Numbers Swapping two numbers is a common programming task that involves exchanging the values of two variables. In this example, we'll create a…

Comments Off on Write a C Program to Swap Two Numbers

Write a c program to swap two numbers

Program: #include <stdio.h> #include <conio.h> int main(){ int a, b, c; printf("Enter two numbers \n"); scanf("%d %d", &a, &b); printf("\na:%d\n b:%d\n",a,b); c = a; a = b; b = c;…

Comments Off on Write a c program to swap two numbers