You are Here: Home >< GCSEs

# a452 lmc watch

1. how do you convert this code to lmc?
n=input ("which value you start on bruh ")
def mystery(n):
a, b = 0, 1
while a < n:
print (a)
a, b = b, a + b

mystery(int(n))

it's a fibonacci sequence
2. [QUOTE=noahBigG;53267889]how do you convert this code to lmc?
n=input ("which value you start on bruh ")
def mystery(n):
a, b = 0, 1
while a < n:
print (a)
a, b = b, a + b

sorry noah dont know bruh
3. (Original post by timmytime)
change mystery to fib

at the bottom of the code add
fib(a number)
(Original post by timmytime)
change mystery to fib

at the bottom of the code add
fib(a number)
let me know when you have solved it though
4. (Original post by timmytime)
let me know when you have solved it though

http://awpacomputing.weebly.com/uplo...88832_orig.jpg

TSR Support Team

We have a brilliant team of more than 60 Support Team members looking after discussions on The Student Room, helping to make it a fun, safe and useful place to hang out.

This forum is supported by:
Updated: January 29, 2015
Today on TSR

### The most controversial member on TSR?

Who do you think it is...

### Is confrontation required?

Discussions on TSR

• Latest
Poll
Useful resources

## Study tools

### Essay expert

Learn to write like a pro with our ultimate essay guide.

See where you can apply with our uni match tool

### Make study resources

Create all the resources you need to get the grades.

### Create your own Study Plan

Organise all your homework and exams so you never miss another deadline.

### Resources by subject

From flashcards to mind maps; there's everything you need for all of your GCSE subjects.

### Find past papers

100s of GCSE past papers for all your subjects at your fingertips.

## Groups associated with this forum:

View associated groups
Discussions on TSR

• Latest

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE