daniel_lawson9999

Daniel Lawson Chapter 3 Self Check Problems 2-10 even

Mar 29th, 2016
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.80 KB | None | 0 0
  1. /**
  2.  * Created by Daniel on 3/29/2016.
  3.  */
  4.  
  5. /*
  6. Daniel Lawson Self Check
  7. 2.
  8. 15 42
  9. 10 25
  10.  
  11.  
  12. 4.
  13. 1 3 5
  14. 1 3 5 7 9 11 13 15
  15. 1 3 5 7 9 11 13 15 17 19 21 23 25
  16.  
  17. 6.
  18. three times two = 6
  19. 1 time three = 28
  20. three time 1 = 2
  21. 1 times eight = 20
  22.  
  23. 8.
  24. touch your eye to your head
  25. touch your head to your eye
  26. touch your shoulders to your elbow
  27. touch your eyes and ears to your eyes and ears
  28. touch your toes to your toes
  29. touch your shoulders to your knees toes
  30.  
  31.  
  32.  
  33. 10.
  34.  
  35.  */
  36.  
  37. public class selfCheckHomework2to10even {
  38.  
  39.     public static void main (String[] args){
  40.         printStrings("abc",7);
  41.     }
  42.  
  43.     public static void printStrings(String string, int times){
  44.         for(int i = 1; i<= times;i++){
  45.             System.out.print(string +" ");
  46.         }
  47.         System.out.println();
  48.     }
  49.  
  50. }
Advertisement
Add Comment
Please, Sign In to add comment