Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ALBERO DI ASTERISCHI
- int size;
- size=6;
- int c;
- for (c=0; c<size-2; ++c) {
- System.out.print(" ");
- }
- System.out.println("*");
- for (c=0; c<size-3; ++c) {
- System.out.println(" ");
- }
- System.out.println("/ \\");
- for (c=0; c<size-4; c++) {
- System.out.println(" ");
- }
- System.out.println("/ \\");
- for (c=0; c<size-5; c++) {
- System.out.print(" ");
- }
- System.out.println("/ \\");
- for (int n = 0; n<size-1; ++n) {
- System.out.print(" ");
- for (n=0; n<= size; ++n) {
- System.out.print("-");
- }
- }
- System.out.println();
- for(c=0; c<size-3; ++c) {
- System.out.print(" ");
- }
- System.out.print("| |");
- // FINE ALBERO DI ASTERISCHI
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement