Find Biggest of 3 Numbers: C++

Video tutorial to find the biggest of the three integer numbers in C++, using if-else control statements.

Full Source Code

#include
#include

void main()
{
 int a, b, c;
 clrscr();

 cout>a>>b>>c;

 int big;

 if( a > b )
  big = a;
 else
 {
  if( b > c )
   big = b;
  else
   big = c;
 }
 cout

In this program we get three integer variables from the user.
If value of variable a is bigger, then we store it inside the variable big; else we compare b with c. Now will store the biggest number inside the variable big.
Video Tutorial: Biggest of 3 Integer Numbers



YouTube Link: https://www.youtube.com/watch?v=YRkCpS_GMFw [Watch the Video In Full Screen.]



Output
Enter 3 no's
404
501
301
Biggest is: 501



View Comments