anayaelaine anayaelaine
  • 09-06-2020
  • Computers and Technology
contestada

Write a Python program that accepts a numeric value from the user and prints the number starting from 0 up to the user’s value.

Respuesta :

hello1222 hello1222
  • 10-06-2020

Answer:

num = int(input("Enter a number:"))

#Use becuase the for loop will start at 0

num = num + 1  

for i in range(num):

 print(i)

Answer Link

Otras preguntas

determine whether the system of linear equations has one and only one solution, infinitely many solutions, or no solution. Find all solutions whenever they exis
7 - 3 ( 5t - 10 ) = 67
7 - 3 ( 5t - 10 ) = 67
7 - 3 ( 5t - 10 ) = 67
A dealer sells a certain type of chair and a table for $40. He also sells the same sort of table and a desk for $83 or a chair and a desk for $77. Find the pric
Find the LCM of 8,9, and 12
what is aas congruence?
Use the REMAINDER THEOREM to explain whether or not (x-2) is a factor of F(x)=x^4-2x^3+3x^2-10x+3
A dealer sells a certain type of chair and a table for $40. He also sells the same sort of table and a desk for $83 or a chair and a desk for $77. Find the pric
determine whether the system of linear equations has one and only one solution, infinitely many solutions, or no solution. Find all solutions whenever they exis