If else if ladder :
Syntax :
if(condition)
statement;
else if(condition)
statement;
else
statement;
//Write a c program to check biggest among three numbers using if else if ladder :
#include<stdio.h>
int main()
{
int a,b,c;
printf("Enter three numbers \n");
scanf("%d %d %d",&a,&b,&c);
if(a>b&&a>c)
{
printf(" number (%d) is biggest \n",a);
}
else if(b>c&&b>a)
{
printf(" number (%d) is biggest \n",b );
}
else
{
printf(" number (%d) is biggest \n" ,c);
}
}
Learning C programming language from basics concept include with PROGRAMS:
https://kodewithgy.blogspot.com/2024/09/learning-c-programming-language-from.html
Tags
If else if ladderxWrite a c program to check biggest among three numbers using if else if ladder :