From 533adf6743ccc3af0f1e7a45a367682fea12398e Mon Sep 17 00:00:00 2001 From: Pritom Hazarika Date: Tue, 30 Oct 2018 03:40:51 +0530 Subject: [PATCH] Update index.md (#21800) * Update index.md Finding the bigger number using If Else * Updated index.md * Update index.md * Update index.md --- guide/english/c/conditional-statements/index.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/guide/english/c/conditional-statements/index.md b/guide/english/c/conditional-statements/index.md index 894a2f50ee..397cc166da 100644 --- a/guide/english/c/conditional-statements/index.md +++ b/guide/english/c/conditional-statements/index.md @@ -234,3 +234,20 @@ printf("%.1lf / %.1lf = %.1lf",firstNumber, secondNumber, firstNumber/firstNumbe Finally, the break statement ends the switch statement. If break statement is not used, all cases after the correct case is executed. +## finding the Bigger among two numbers using if else statement. +```C +int a,b; +printf("Enter the first number: \n"); +scanf("%d",&a); +printf("Enter the second number: \n"); +scanf("%d",&b); +//comparing the numbers +if(a>b) +{ + printf("A is the Bigger number"); +} +else +{ + printf("B is the bigger number"); +} +```