Visual Basic Display Square
Posted
by
user1724157
on Stack Overflow
See other posts from Stack Overflow
or by user1724157
Published on 2012-10-05T21:35:40Z
Indexed on
2012/10/05
21:36 UTC
Read the original article
Hit count: 137
vb.net
|visual-studio-2010
Alright I'm currently lost on a particular assignment I have for a class. I've seen many examples of this app but none of them see to help my problem is as follows:
Write a Sub procedure "DisplaySquare" to display the solid square. The size should be specified by the integer parameter "size". The character that fills the square should be specified by the string parameter "fillCharacter. Use a For...Next statement nested within another For...Next statement to create the square. The outer For...Next specifies what row is currently being displayed. The inner For...Next appends all the characters that form the row to a display string.
So it should come out like as follows:
if a user enters "8" and "#"
########
########
########
########
########
########
########
########
Any help would be appreciated.
© Stack Overflow or respective owner