Program to find out the greater number from given numbers(Level - Low)


Program # 10: Greater number from given Numbers

//Program to find out the greater number from given numbers(Level - Low)
#include <iostream.h> 
#include <conio.h>

void main ()
{
clrscr();
int a,b,c,max;
cout<<"Enter the value of a = "; cin >> a;
cout<<"Enter the value of b = "; cin >> b;
cout<<"Enter the value of c = "; cin >> c;

if (a > b)
max = a;
else
max = b;
if (c > max)
max = c;

cout<<"The Greater number is = "<<max; 

getch ();
}

Post a Comment

0 Comments