Computer Science, asked by yashi6185, 1 month ago

Write a program to initislize
two variables
and interchange their values and then print with
suitable message​

Answers

Answered by AbhilabhChinchane
0

Answer:

C Program

#include <stdio.h>

int main()

{

int x, y, t;// x and y are the swapping variables and t is another variable.

printf("Enter the value of X and Y\n");

scanf("%d%d", &x, &y);

printf("before swapping numbers: %d %d\n",x,y);

/*swapping*/

Similar questions