Advertisement
Guest User

166e

a guest
Oct 10th, 2015
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1.  
  2. import java.text.DecimalFormat;
  3.  
  4. public class Prog166e {
  5.  
  6. public static void main(String args[])
  7. {
  8. DecimalFormat d = new DecimalFormat("0.00000");
  9. for (float i = 2; i <= 14; i++)
  10. {
  11. for (float j = 1; j < i; j++)
  12. {
  13. float r = j / i;
  14. System.out.println( (int) j + "/" +(int) i + " " + d.format(r));
  15. }
  16. }
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement