Ask coding questions

← Back to all posts
Why wont this work?
JacobMcPherson1 (239)

the program won't let me make nterms higher than 45. Why does this happen?

Answered by Coder100 (18187) [earned 5 cycles]
View Answer
Comments
hotnewtop
Coder100 (18187)

Your types are too small!

Try a wider type, like i128

let mut n1 = 0i128;
// ...

U can find out about the error more here!
https://doc.rust-lang.org/book/ch03-02-data-types.html