youYou need to use pen and paper for mario.. think and think about loops..try n make algorithms..you need to use nested loops. loop for changing line, hashes...and be sure to use new line character carefully.. take care of the upperlimits you are using in loops..