Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package count;
- public class Count {
- public static void main(String[] args) {
- int c = 0;
- int i = 1;
- int t = 0;
- int b = 1;
- while (t < 50) {
- b = i + c;
- c= i;
- i=b;
- System.out.println(c);
- t++;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement