#include <stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf("Enter the two numbers to swap them\n");
scanf("%d%d",&a,&b);
a = a + b;
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf("Enter the two numbers to swap them\n");
scanf("%d%d",&a,&b);
a = a + b;
b = a - b;
a = a - b;
printf("\nAfter swapping value of a : %d", a);
printf("\nAfter swapping value of b : %d", b);
getch();
No comments:
Post a Comment