Nate Nio

Greenhorn
+ Follow
since Mar 17, 2017
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Nate Nio

Campbell Ritchie wrote:Nate Nio, welcome to the Ranch

Please don't be annoyed with me, but I am afraid I have pulled rank and deleted part of your post. We have this

We're all here to learn, so when responding to others, please focus on helping them discover their own solutions, instead of simply providing answers.

...written on the home page for this forum. We believe it doesn't help to supply too complete an answer too quickly. I have removed three lines.
Please work out why the advice in line l12‑13 is potentially dangerous.



Whoops. Was a bit overzealous. Thank you for reminding me. I don't remember the code for those lines but I was trying to use what OP wrote.

Since OP didn't provide a range for x and y, user input could output especially large numbers, throwing the format of the table off. The list could also be exceptionally long.

I feel I might be overlooking something.
7 years ago
I think you might be over-complicating the code. If you must use a for loop, you can structure your code as follows:



This saves you from creating extra variables and uses fewer lines of code. The reason for declaring 'z' is to preserve the user-entered number for 'x'. Hope this helps!
7 years ago