From c046d4e5b5c7b697e6a7ff09c7b4f77e746ba780 Mon Sep 17 00:00:00 2001 From: thetarandhiman <72307204+thetarandhiman@users.noreply.github.com> Date: Sat, 17 Oct 2020 22:21:33 +0530 Subject: [PATCH 1/2] Create taranpreet.md This is for Hacktoberfest 2020. so please accept my PR under Hacktoberfest accepted tag. --- taranpreet.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 taranpreet.md diff --git a/taranpreet.md b/taranpreet.md new file mode 100644 index 0000000..0631efa --- /dev/null +++ b/taranpreet.md @@ -0,0 +1,3 @@ +Creating a new pull request for Hacktoberfest 2020. + +github: https://github.com/thetarandhiman From 96c43a62fc28c4c94332b48c72c8360726fbe82d Mon Sep 17 00:00:00 2001 From: Taranpreet Kaur Dhiman <72307204+thetarandhiman@users.noreply.github.com> Date: Sat, 17 Oct 2020 23:28:20 +0530 Subject: [PATCH 2/2] Create C-lang.txt swapping two variables code. markas hacktoberfest accepted please. --- C-lang.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 C-lang.txt diff --git a/C-lang.txt b/C-lang.txt new file mode 100644 index 0000000..fbe8de7 --- /dev/null +++ b/C-lang.txt @@ -0,0 +1,11 @@ +//swapping two variables +#include +int main(){ + double a ,b; + printf("Enter numbers to be interchanged="); + scanf("%lf %lf", &a, &b); + a=a+b; + b=a-b; + a=a-b; + printf("\nAfter swapping the numbers, \n the first number is=%lf \n the second number is=%lf", a,b); + return 0;}