Last active
August 1, 2019 14:39
-
-
Save sachinsaxena25/2ffd1b8ad6781852beddf9e082c2351e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main(void){ | |
int a = 0; | |
int b = 0; | |
int c = 0; | |
printf("please enter the first number: \n"); | |
scanf("%d", &a); | |
printf("please enter the second number: \n"); | |
scanf("%d", &b); | |
printf("The numbers before swapping are a = %d b = %d", a, b); | |
c = a; | |
a = b; | |
b = c; | |
printf("swapped number is: %d %d", a, b); | |
return 0; | |
} |
dbc2201
commented
Jul 29, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment