Advertisement
wadkat

7 times table java

May 22nd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1.  
  2. package javalesson4;
  3.  
  4.  
  5. public class NewClass {
  6. public static void main(String[] args)
  7. {
  8. int x, product;
  9.  
  10. for(x=1; x<=10; x++)
  11. {
  12. product =7*x;
  13. System.out.printf("7*%02d = %2d \n", x, product);
  14. }
  15.  
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement