Question: Write a program that prints an imitation of the Composition II in Red, Blue, and Yellow created in 1930 by Piet Mondrian painting, illustrated below.

 Write a program that prints an imitation of the Composition II

Write a program that prints an imitation of the Composition II in Red, Blue, and Yellow created in 1930 by Piet Mondrian painting, illustrated below. Use character sequences such as @@a or: to indicate different colors and use - and| to form the black lines. with algorithm public class Solution - public static void main(String[] args) { for(int FI ;12 && 39){ System.out.print("@ "); 3 else if(i--39)\ System.out.print( "-"); } else ifti-39 && j12) { System.out.prinu". "); } else ifj12 && ==15){ System.out.print"-"); } else ifi-39 && -45 System.out.print(" "); } else ifi--45 &&j245){ System.out.print"- "); 3 else iffi>45 && j>45) System.out.print("% "); } else { System.out.print" "); System.out.println); } I I have this java code but it gives me "long output" error in browxy compiler

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!