simple c++ loop question
Go to solution
Solved by Sauron,
in pseudocode (won't write it for you
)
print "enter your name"input -> nameprint "enter height"input -> heightprint "enter width"input -> widthfor(i from 0 to (width-1)) print name;print "\n"for(i from 0 to (height-3)) print name + (width-2)*" " + name + "\n"for(i from 0 to (width-1)) print name;print "\n"

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now