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