practical3
practical3
Title:- Programming in c.
Aim: Write a program using c find the largest number among three
number using if-else statement.
if-else Statement:
An if statement can be followed by an optional else statement.
The general form of if…else statement is –
if(condition)
{
Statement block
}
else
{
Statement block
}
Here, if block is called true block and the else block is called false block.
/* Program for find the largest number among thre number using if-else statement */
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
int main()
{
int a = 10, b = 22, c = 9;
O/P: 22