Skip to content

Commit

Permalink
Abrar Code commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedabrar914 committed Nov 19, 2023
1 parent cc9ac5f commit b80ef25
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions abrar.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include <stdio.h>
int main()
{
int x, y;
printf("Enter Value of x ");
scanf("%d", &x);
printf("\nEnter Value of y ");
scanf("%d", &y);
int temp = x;

x = y;

y = temp;

printf("\nAfter Swapping: x = %d, y = %d", x, y);
return 0;
}

0 comments on commit b80ef25

Please sign in to comment.