Created
March 30, 2019 01:27
-
-
Save diogoko/6c3d5dd8e3857ec567d81d1ed3de83af to your computer and use it in GitHub Desktop.
Java Unicode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Fibonacci { | |
public static void main(String[] β³rgs) { | |
π―π²π«πΈπ·πͺπ¬π¬π²(5); | |
} | |
private static void π―π²π«πΈπ·πͺπ¬π¬π²(int Ι ) { | |
int Ο« = 1; | |
int Ρ = Ο«; | |
for (int Β€ = 0; Β€ < Ι ; Β€++) { | |
int α = Ο« + Ρ; | |
Ο« = Ρ; | |
Ρ = α; | |
System.out.println(Ρ); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment