Doubts regarding

i have run my code ,for this ManMohan love pattern 2, on my ide it is fine but when i submitted it here it is saying that it is wrong .

hi @pdhankhar_61
send me your code link.

https://ide.geeksforgeeks.org/PJfcGuhGBh

@pdhankhar_61
your code is correct just remove this line
System.out.println(“enter the value of n”);
from your code

@pdhankhar_61
please mark your doubt as resoved and rate my work