-
-
Save mariiaKolokolova/5ecd11a8f4d155ba81365714748dc43e to your computer and use it in GitHub Desktop.
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
package maricka.kolokolova; | |
public class Main { | |
public static void main(String[] args) { | |
// TODO Auto-generated method stub | |
int a = 10; | |
for (int i = 1; i <= a; i++) { | |
printPi(i + 1); | |
} | |
} | |
public static void printPi(int n) { | |
System.out.println(String.format("Pi: %." + n + "f", Math.PI)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment