Skip to content

  • Home
  • Mathematics
  • English
  • History
  • Chemistry
  • Biology
  • Law
  • Medicine
  • Business
  • Toggle search form

Write a program using integers user_num and x as input, and output user_num divided by x three times.

Posted on October 22, 2021 By Cvannesacanto 7 Comments on Write a program using integers user_num and x as input, and output user_num divided by x three times.

Write a program using integers user_num and x as input, and output user_num divided by x three times. Ex: If the input is: 2000 2 Then the output is: 1000 500 250

Computers and Technology

Post navigation

Previous Post: I need help I totally forgot this.​
Next Post: Did I do this question right ?If not explain why I tried and but not sure .

Comments (7) on “Write a program using integers user_num and x as input, and output user_num divided by x three times.”

  1. alex43079 says:
    October 23, 2021 at 3:48 am

    user_num = 2000

    x = 2

    for i in range(3):

     user_num = user_num // x

     print(user_num)

    Reply
  2. Serenitybella says:
    October 23, 2021 at 3:55 am

    Soory! I can't tell please tell clearly

    Reply
  3. kidward says:
    October 23, 2021 at 5:42 am

    The program written in Python is as follows:

    user_num = int(input("Number: "))

    x = int(input("x: "))

    for i in range(1,4):

         user_num = user_num/x

         print(user_num," ")

    Explanation:

    This line gets user_input from the user

    user_num = int(input("Number: "))

    This line gets x from the user

    x = int(input("x: "))

    This line iterates from 1 to 3

    for i in range(1,4):

    This line divides user_num by x

         user_num = user_num/x

    This line prints the result of the division

         print(user_num," ")

    Reply
  4. ashton3952525 says:
    October 23, 2021 at 8:45 am

    user_num = int(input("Number: "))

    x = int(input("x: "))

    for i in range(1,4):

        user_num = user_num/x

        print(user_num," ")

    Explanation:

    Reply
  5. ggg509 says:
    October 23, 2021 at 11:15 am

    LAB: Divide by x

    0 / 10

    Explanation:

    Reply
  6. selene29 says:
    October 23, 2021 at 8:11 pm

    40 outputs would be counted

    Reply
  7. Govind3793 says:
    October 23, 2021 at 11:13 pm

    The slope formula is delta y/delta x=m
    You can choose any two points. Let's choose (0,25) and (1,30)
    30-25/1-0=5/1=5
    Slope intercept form is y=mx+b
    b=the y intercept
    y=5x+25 since (0,25) is the coordinates for the y inthercept.
    Plug in 200: y=5(200)+25
    Simplify and you get that y=1025
    Your answer is 1025
    Your welcome

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Advanced Placement (AP)
  • Arts
  • Biology
  • Business
  • Chemistry
  • Computers and Technology
  • Engineering
  • English
  • French
  • Geography
  • German
  • Health
  • History
  • Law
  • Mathematics
  • Medicine
  • Physics
  • SAT
  • Social Studies
  • Spanish
  • World Languages

© 2021 studyqas

Powered by PressBook WordPress theme