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 .
Doubts regarding
@pdhankhar_61
your code is correct just remove this line
System.out.println(“enter the value of n”);
from your code