7/5/21

Biggest Number among three numbers in C++ using IF Else IF

#include<iostream.h>

#include<conio.h>

void main()

{

int a,b,c;

clrscr();

cout<<"enter any three values";

cin>>a>>b>>c;

if(a>b&&a>c)

cout<<"a is big";

else if(b>c)

cout<<"b is big";

else

cout<<"c is big";

getche();

}

out put:

enter any three values

23

34

56

c is big

No comments:

Blog Archive