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;} 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