Member Avatar for johny112

Im trying to write the programme for the following question, and im really struggliing. I will be reaaly thankful if someone can give me some tips or a programme for this.

I would also like to point that im new to programming and this website so please give me some details for statements if possible.


Question-
Write a function that displays at the left margin of the screen a solid square of asterisks whose
side is specified in integer parameter side. For example, if side is 4, the function displays:
Sample Screen Display
****
****
****
****

Recommended Answers

All 2 Replies

Look up the concept of nested loops in your reference material. It means a loop within a loop, and is a commonly used technique so there shouldn't be any problem finding a number of references. Then post code and specific questions about the code, error messages, etc, as necessary.

Member Avatar for johny112

thanks i will try that.

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.