Pascal triangle pattern

my code is not being accepted by the ide
though it produces the required output

please send the code here