Saturday, 19 July 2014

C plusplus Program to Find the Biggest of 3 Numbers

Leave a Comment
#include<iostream>
#include<conio.h>
using namespace std;
void main()
{
int number1,number2,number3,temp=0;
cout<<"C plusplus Program to Find the Biggest of 3 Numbers \n\n";
cout<<"Enter number 1 = ";
cin>>number1;
cout<<"Enter number 2 = ";
cin>>number2;
cout<<"Enter number 3 = ";
cin>>number3;
if(number1>number2)
{
temp=number1;
}
else if(number2>number3)
{
temp=number2;
}
else if(number3>temp)
{
temp=number3;
}
cout<<"Larger Number = "<<temp;

getch();
}
If You Enjoyed This, Take 5 Seconds To Share It