hi,
here is the link to my code
even though i am getting the desired output, i don’t know why my test cases are not executing?
Double_sided_arrow_pattern
@Harshit199823
You are printing double the required pattern. Just take a look at the sample testcase for 7 and your output for 7.
You might want to write
num = num/2 + 1;
after cin>>num statement to divide the pattern by half.