0

Pattern problem

Input is n=4 Output ā‚¹ā‚¹ā‚¹ ā‚¹ā‚¹ā‚¹ ā‚¹ &&&&& ā‚¹ ā‚¹ā‚¹ā‚¹ ā‚¹ā‚¹ā‚¹ Condition n<null

17th Jul 2019, 5:47 AM
Aravindhan k
2 Answers
+ 2
Input is 4 but there are 5 lines of output. What if input was odd number? also other than the '&' the character to print looks unfamiliar, if that was Unicode you should've specifically said so (pretty sure that 'ā‚¹' character isn't in ASCII table). The condition `n<null` doesn't sound so clear. null is a special data, comparing a value is not equal to null is possible, but n<null doesn't make sense somehow (cmiiw). (Edit) I think null is used for checking pointer validity.
18th Jul 2019, 10:28 AM
Ipang
+ 3
show your code
17th Jul 2019, 10:24 AM
āœ³AsterisKāœ³
āœ³AsterisKāœ³ - avatar