Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  cabiles.cpp
Language: C/C++
Code:
#include<iostream>
using namespace std;
int main()
{
int num1,num2,num3;
cout<<" Enter value for first number";
cin>>num1;

cout<<" Enter value for second number";
cin>>num2;

cout<<" Enter value for third number";
cin>>num3;
if(num1>num2&&num1>num3)
{
cout<<" First number is greatest:"<<endl<<"whick is= "<<num1;
}
else if(num2>num1&&num2>num3)
{
cout<<" Second number is greatest"<<endl<<"whick is= "<<num2;
}
else
{
cout<<" Third number is greatest"<<endl<<"whick is= "<<num3;
}
return 0;
}     
Comments: