Create a Code to Enter Three Number and Check Which Number is Large is Other Then
#include<iostream.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
cout<<"\n Enter 3 number ";
cin>>a>>b>>c;
if(a>b)
{
if(a>c)
cout<<"a is larger "<<a;
else
cout<<"\n c is larger "<<c;
}
else
{
if(b>a)
cout<<"\n b is larger "<<b;
else
cout<<"\n c is larger "<<c;
}
getch();
}
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
cout<<"\n Enter 3 number ";
cin>>a>>b>>c;
if(a>b)
{
if(a>c)
cout<<"a is larger "<<a;
else
cout<<"\n c is larger "<<c;
}
else
{
if(b>a)
cout<<"\n b is larger "<<b;
else
cout<<"\n c is larger "<<c;
}
getch();
}
Create a Code to Enter Three Number and Check Which Number is Large is Other Then
Reviewed by Unknown
on
6:04:00 PM
Rating:
No comments: