If I run the same program in my VS code, it is running. Here, it is not able to pass any test case. Can you please help me with that.
Program to print the largest no amount 3 inputs.
#include
using namespace std;
int main()
{
int i, n, lar;
cout<<"Enter the numbers : ";
for(i=1;i<4;i++)
{
cin>>n;
if(i==1)
{
lar=n;
}
if(n>lar)
{
lar=n;
}
}
cout<<lar;
return 0;
}