Shape-Machine: Difference between revisions
Content deleted Content added
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)" |
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](http://static.miraheze.org/rosettacodewiki/thumb/b/ba/Rcode-button-task-crushed.png/64px-Rcode-button-task-crushed.png)
You are encouraged to solve this task according to the task description, using any language you may know.
Task
- Get user input and store in a variable/stack
- Add 3 to the input and multiply it by 0.86 and then output it
- Now reapeat the previos step
Python
a=int(input()) while True: a += 3 a *= 0.86 print(a)