Creating Variables and Printing 4
Print out the following pattern:
*
**
***
##
#
class Main {
public static void main(String[] args) {
System.out.println("*");
System.out.println("**");
System.out.println("***");
System.out.println("##");
System.out.println("#");
}
}
반응형
'Java_beginner(Repl.it) > Auto-Graded-Course(AP CS A)' 카테고리의 다른 글
006 - String Methods - Length (0) | 2019.11.26 |
---|---|
005 - Creating Variables and Printing 5 (0) | 2019.11.26 |
003 - Creating Variables and Printing 3 (0) | 2019.11.26 |
002 - Creating Variables and Printing 2 (0) | 2019.11.26 |
001 - Creating Variables and Printing 1 (0) | 2019.11.26 |