Computer Science, asked by Nishthashree1530, 1 year ago

C program to swap two numbers using three variable

Answers

Answered by jondeshialymon
2

Answer:

Swapping of two numbers without third variable

#include <stdio.h>

int main()

{

int a, b;

printf("Input two integers (a & b) to swap\n");

scanf("%d%d", &a, &b);

a = a + b;

b = a - b;

Similar questions