0
Pattern problem
Input is n=4 Output ₹₹₹ ₹₹₹ ₹ &&&&& ₹ ₹₹₹ ₹₹₹ Condition n<null
2 ответов
+ 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.
+ 3
show your code