Math, asked by Santoh12, 3 months ago

Write a program to swap two numbers using function

Answers

Answered by dev6586
1

Answer:

#include <stdio.h>

int main()

{

int x, y, t;

printf("Enter two integers\n");

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

printf("Before Swapping\nFirst integer = %d\nSecond integer = %d\n", x, y);

t = x;

x = y;

y = t;

printf("After Swapping\nFirst integer = %d\nSecond integer = %d\n", x, y);

return 0;

}

ye mera questions he because I'm electronics and communication engineering stdunt

Answered by prosantpadma
0

Answer:

nearest program to swap two numbers using function

Attachments:
Similar questions