From 40ee6eb04b731f8391bc6ebe38909af730865e2e Mon Sep 17 00:00:00 2001 From: nj1902 <56442920+nj1902@users.noreply.github.com> Date: Sun, 27 Oct 2019 09:24:09 +0530 Subject: [PATCH 1/2] Update README.md --- C/README.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/C/README.md b/C/README.md index 2b9aa9c..2dc14e2 100644 --- a/C/README.md +++ b/C/README.md @@ -1,5 +1,21 @@ # C Language -This folder contains basic algorithms in C language. +#include -You can contribute by adding any algorithms you think is missing. +void main() +{ + float a,b,t; + printf("\nSwapping two numbers using third variable:->"); + printf("\nEnter first number:"); + scanf("%f",&a); + printf("\nEnter second number:"); + scanf("%f",&b); + + t=a; + a=b; + b=t; + + printf("\nAfter swapping..."); + printf("\n\nFirst number:%f",a); + printf("\nSecond number:%f",b); +} From f3b37019c38bc6d0d79d38578393d1b467c3ca12 Mon Sep 17 00:00:00 2001 From: nj1902 <56442920+nj1902@users.noreply.github.com> Date: Thu, 31 Oct 2019 20:01:27 +0530 Subject: [PATCH 2/2] Update README.md --- C/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C/README.md b/C/README.md index 2dc14e2..66e97cf 100644 --- a/C/README.md +++ b/C/README.md @@ -1,5 +1,5 @@ # C Language - +//This program swaps two numbers with the help of third variable. #include void main()