Question 7

Given a 1D array with integers,print vertical bars of # such that if a[i] = n, then print # n times from the bottom.

For eg, {1,4,3,2}

o/p : #

# #

# # #

# # # #

[advanced_iframe securitykey=”undefined” src=”https://code.kodnest.com/” width=”100%” height=”600″]

KodNest Training New Batch is starting on 02nd November 2020. Attend one week free demo classes.Register Now

New Report

Close