mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
examples: use i64 in Fibonacci
This commit is contained in:
parent
baf49b2523
commit
1ce2acb4ef
@ -15,9 +15,9 @@ fn main() {
|
||||
stop := os.args[1].int()
|
||||
|
||||
// Three consecutive terms of the sequence
|
||||
mut a := 0
|
||||
mut b := 0
|
||||
mut c := 1
|
||||
mut a := i64(0)
|
||||
mut b := i64(0)
|
||||
mut c := i64(1)
|
||||
|
||||
for i := 0; i < stop; i++ {
|
||||
// Set a and b to the next term
|
||||
|
Loading…
Reference in New Issue
Block a user