Shape-Machine: Difference between revisions

From Rosetta Code
Content deleted Content added
Gaham (talk | contribs)
Created page with "{{task}}'''Task''' # Get user input and store in a variable/stack # Add 3 to the input and multiply it by 0.86 # Now reapeat the previos step =={{header|Python}}== a=int(input()) while True: a += 3 a *= 0.86 print(a)"
 
Gaham (talk | contribs)
No edit summary
Line 1: Line 1:
{{task}}'''Task'''
{{task}}'''Task'''
# Get user input and store in a variable/stack
# Get user input and store in a variable/stack
# Add 3 to the input and multiply it by 0.86
# Add 3 to the input and multiply it by 0.86 and then output it
# Now reapeat the previos step
# Now reapeat the previos step
=={{header|Python}}==
=={{header|Python}}==

Revision as of 19:37, 5 July 2024

Task
Shape-Machine
You are encouraged to solve this task according to the task description, using any language you may know.

Task

  1. Get user input and store in a variable/stack
  2. Add 3 to the input and multiply it by 0.86 and then output it
  3. Now reapeat the previos step

Python

a=int(input())
while True:
    a += 3
    a *= 0.86
    print(a)