Pattern with zeroes

what is the error in my code.

hello @tejuschaturvedi0

check now->

sir your code is still not running. it is showing an error occurred and try again. what is the problem in my code ?

use other compiler for now, their is some issue with cb ide.
it will get fixed soon

sir but the code rewrote by you is still giving wrong answers on submitting .

pls check output format , there is space between two consecutive digit.
i made only logical correctios