You really should not be hard coding magic numbers. What happens if a user enters a value that does not fit? You need to make it dynamic. So the code should print a full line on the first and last...
Type: Posts; User: Junky
You really should not be hard coding magic numbers. What happens if a user enters a value that does not fit? You need to make it dynamic. So the code should print a full line on the first and last...
if(width == 3 || width == 3){
Really?
Are you going to attempt this yourself are you just expecting someone to spoonfeed you the code?