Advertisement
zainarfi00

Untitled

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