Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class back_triangle{
- public static void main(String []args){
- int size=11;
- for (int i=0; i<size; i++){ //высота
- for (int j=0; j<size; j++){
- if (j==size || i==size-j-1 || i==size-1 || j==size-1){
- System.out.print("O");
- }
- else{
- System.out.print(" ");
- }
- }
- System.out.println();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement