Why this code is wrong for largest number pf 5 numbers

#include
#include
using namespace std;
int main(){
int n =5;
int no, largest;
largest = INT_MIN;
int i = 1;
while(i <=5){
cin >> no;
cout << ’ ';
if(largest < no){
largest = no;
}
i = i +1;
}
cout << largest;
return 0;
}

this code is passing all testcases
what is your question ?

Read as input 5 Numbers and print the largest out of them

working fine for me
check here

Yeah it worked…Thank you

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.