Pattern hollow rhombus

i run the same code on coding blocks IDE
i run properly but here it fails
code link:https://ide.codingblocks.com/s/79300

Hi Rohan,
You shouldn’t use print statements for taking input. Also in the loop for internal spaces k will start from 1. Also you don’t have to give tab spaces just give normal spaces. I have made above changes in your code and you can check them in following link: https://ide.codingblocks.com/s/79649

1 Like