Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- let mut a=1;
- let mut b=1;
- let mut t=0;
- for c in 1..100+1{
- let mut w=a+b;
- b=a;
- a=w;
- t=a+t;
- }
- println!("{}",t);}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement