Advertisement
Guest User

Untitled

a guest
May 16th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1.  
  2. package ovning11_1;
  3.  
  4. /**
  5. *
  6. * @author jespergillfjard
  7. */
  8. public class Ovning11_1 {
  9.  
  10.  
  11. public static void main(String[] args) {
  12.  
  13. double[] falt1 = { 0, 0, 0, 0 };
  14. int[] falt2 = { 5, 10, 20, 50 ,100, 200, 500 };
  15.  
  16. for (double y : falt1 ) {
  17. System.out.print(" " + y);
  18. }
  19. System.out.println("\n");
  20.  
  21. for ( int x : falt2 ) {
  22. System.out.print(" " + x);
  23. }
  24.  
  25. }
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement