willieshi232

Untitled

Sep 16th, 2015
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. public class quiz
  2. {
  3. public static void main(String[] args)
  4. {
  5. for (int line = 1; line <=5; line++)
  6. {
  7. for (int dot = 1; dot <= (-1*line+5); dot++)
  8. {
  9. System.out.print(".");
  10. }
  11. System.out.print(line);
  12.  
  13. for (int dot2= 1; dot2<=line-1; dot2++)
  14. {
  15. System.out.print(".");
  16. }
  17. System.out.println();
  18. }
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment