0

Pattern problem

Input is n=4 Output ₹₹₹ ₹₹₹ ₹ &&&&& ₹ ₹₹₹ ₹₹₹ Condition n<null

17th Jul 2019, 5:47 AM
Aravindhan k
2 Respostas
+ 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