Hello, I am new, and this question may seem stupid but I'm kinda lost.. i didn't attend the first classes because I was ill.
Can someone help me to construct a pseudo-code for a rectangle like this:
********
* *
* *
********
(it doesnt look right - it should show a rectangle)

It should contain an input function with the
lenght = 8 and width= 4

Thank you in forward.

count the nr of chars of your first line, subtract two.
for the next n lines, print *, then the number found earlier in spaces, and print another *
then, print a complete line again

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.