Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.text.DecimalFormat;
- public class Prog166e {
- public static void main(String args[])
- {
- DecimalFormat d = new DecimalFormat("0.00000");
- for (float i = 2; i <= 14; i++)
- {
- for (float j = 1; j < i; j++)
- {
- float r = j / i;
- System.out.println( (int) j + "/" +(int) i + " " + d.format(r));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement