Write a C++ program using DarkGDK with functions that asks the user for a positive integer no greater than 15. The program should then display a square on the screen using the character “X”. The number entered by the user will be the length of each side of the square. For example, if the user enters 5 the program should display the following:
XXXXX
XXXXX
XXXXX
XXXXX
XXXXX
If the user enters 8, the program should display the following: XXXXXXXX XXXXXXXX XXXXXXXX
XXXXXXXX
XXXXXXXX
XXXXXXXX
XXXXXXXX
XXXXXXXX
moni.
0
Newbie Poster
Recommended Answers
Jump to PostThanks for posting your homework question. Now what is -your- question?
And sorry, I have no working knowledge of your DarkGDK, but there is a set of related threads pointed out on the right-hand-side of the screen here, they may be helpful to you as well.
All 4 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.