Code for - Find largest of 3 numbers

Unable to identify the error in my code . Can you provide the solution?

hi @sikasaha90
firstly,

cout<<"largest number is"

this is not expected in the o/p… so just remove it and simply print the largest number…
I have corrected ur code --> https://ide.codingblocks.com/s/643476
its working fine and should pass all test cases…

hi @sikasaha90
is it clear now??

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.

hi @sikasaha90
U have reopened the doubt… is there still anything???
refer this code if u still face any difficulty -->

#include <iostream>
using namespace std;

int main() {    
    int n1, n2, n3;

    cin >> n1 >> n2 >> n3;

    if(n1 >= n2 && n1 >= n3)
        cout << n1;

    else if(n2 >= n1 && n2 >= n3)
        cout << n2;
    
    else if(n3 >= n1 && n3 >= n2)
        cout <<  n3;

    cout<<endl;
    return 0;
}