Question: write a c program that takes the following input(shown below) and prints the following output(shown below) (sample input 1) (sample output 1) (sample input 2)
(sample input 1)
(sample output 1)
(sample input 2)
(sample output 2)RGGGG RYWWO RYWWO RYYOO BBBB L RRR. U R |R|G|G|G|G| +-+-+-+-+-+ |R|Y|W|W|0| +-+-+-+-+-+ |R|Y|W|W|O| +-+-+-+-+-+ |R|Y|Y|0|0| +-+-+-+-+-+ | |BIBIBIBI RGGGG RYWWO RYWWO RYYOO BBBb L R RR U R IRIGIG|G|G| + |R||W|W101 IRIY|WW01 IRIY|Y0|0l IBIBIB|b|| Spiral! RGGGG RYWWO RYWWO RYYOO BBBB L RRR. U R |R|G|G|G|G| +-+-+-+-+-+ |R|Y|W|W|0| +-+-+-+-+-+ |R|Y|W|W|O| +-+-+-+-+-+ |R|Y|Y|0|0| +-+-+-+-+-+ | |BIBIBIBI RGGGG RYWWO RYWWO RYYOO BBBb L R RR U R IRIGIG|G|G| + |R||W|W101 IRIY|WW01 IRIY|Y0|0l IBIBIB|b|| Spiral
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
