Hello everyone, I made this small program for fun, and I try to compile it via Dev-C++ but it is not working. It says compiling, but does not compile! Please help?!
#include <iostream>
usingnamespace std;
int main(int argc, char *argv[]) {
float n1;
float n2;
float n3;
cout<<"Please enter the three (3) numbers:/n";
cout<<"Enter the First number";
cin>>n1;
cout<<"Enter the Second number";
cin>>n2;
cout<<"Enter the Third number";
cin>>n3;
if (n1>n2&&n1>n3)
{
cout<<"The largest number is - "<<n1;
}
else
{
if (n2>n1&&n2>n3)
{
cout<<"The largest number is - "<<n2;
}
else
{
if (n3>n1&&n3>n2)
{
cout<<"The largest number is - "<<n3;
}
else
{
cout<<"They are equal";
}
}
}
return 0;
}