Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class quiz
- {
- public static void main(String[] args)
- {
- for (int line = 1; line <=5; line++)
- {
- for (int dot = 1; dot <= (-1*line+5); dot++)
- {
- System.out.print(".");
- }
- System.out.print(line);
- for (int dot2= 1; dot2<=line-1; dot2++)
- {
- System.out.print(".");
- }
- System.out.println();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment