Write a for loop to print the numbers from 20 to 30, inclusive (this means it should include both the 20 and 30). The output should all be written out on the same line.
Sample Run
20 21 22 23 24 25 26 27 28 29 30
1
Expert's answer
2019-11-06T07:48:08-0500
There are several ways to do this, but in my opinion, the simplest way is to change the default value of the argument END ( such as end="\n") to a SPACE, like this:
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment