C program to swap two numbers using three variable
Answers
Answered by
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
Science,
6 months ago
Hindi,
6 months ago
Social Sciences,
6 months ago
Math,
1 year ago
Social Sciences,
1 year ago
Math,
1 year ago