fb pixel

Printing computer screen

A software engineering company starts to work on a new prototype of a game. For that, they want to model the screen of a computer by printing its borders. They ask you to help them with writing the program that prints the screen.
Write a program that would print the screen (height: 5, width: 18):
******************
*                *
*                *
*                *
******************
 
To check your solution you need to sign in
Sign in to continue