Basically you are given a size of a number s and a number n and you want to display n in size s.
We both know what it's asking but have no idea on how to even get started.
There are 2s+3 rows so we have a for loop like this:
for (int row=0;row<2*s+3;row++) {
}
Then each digit occupies s+2 columns.
So then we would have another loop in the for loop:
for (int col=0;col<n.length();col++) {
}
where n is the number we are displaying.
Maybe? Any thoughts on how we can go about this would be super. :) Not asking for a solution or any code, just a thought to get started really.
Thanks. :D


Sign In
Create Account


Back to top










