Write a program called CozaLozaWoza which prints the numbers from 1 to the upper bound entered by the user, 11 numbers per line. The program shall print "Coza" in place of the numbers which are multiples of 3, "Loza" for multiples of 5, "Woza" for multiples of 7, "Cozaloza" for multiples of 3 and 5, "CozaWoza" for multiples of 3 and 7, "CozaWoza" for multiples of 3 and 7. and "CozaLozaWoza" for multiples of 3, 5 and 7. The output should look like the sample given below: Please enter the upper bound: 110 1 2 Coza 4 Loza Coza Woza 8 Coza Loza 11 Coza 13 Woza CozaLoza 16 17 Coza 19 Loza Cozawoza 22 23 Coza Loza 26 Coza Woza 29 Cozaloza 31 32 Coza 34 Lozawoza Coza 37 38 Coza Loza 41 Cozawoza 43 44 CozaLoza 46 47 Coza Woza Loza Coza 52 53 Coza Loza Woza Coza 58 59 Cozaloza 61 62 Cozawoza 64 Loza Coza 67 68 Coza Lozawoza 71 Coza 73 74 Cozaloza 76 Woza Coza 79 Loza Coza 82 83 Cozawoza Loza 86 Coza 88 89 Cozaloza Woza 92 Coza 94 Loza Coza 97 Woza Coza Loza 101 Coza 103 104 Cozalozawoza 106 107 Coza 109 Loza
Write a program called CozaLozaWoza which prints the numbers from 1 to the upper bound entered by the user, 11 numbers per line. The program shall print "Coza" in place of the numbers which are multiples of 3, "Loza" for multiples of 5, "Woza" for multiples of 7, "Cozaloza" for multiples of 3 and 5, "CozaWoza" for multiples of 3 and 7, "CozaWoza" for multiples of 3 and 7. and "CozaLozaWoza" for multiples of 3, 5 and 7. The output should look like the sample given below:
Please enter the upper bound:
110 1 2 Coza 4 Loza Coza Woza 8 Coza Loza 11
Coza 13 Woza CozaLoza 16 17 Coza 19 Loza Cozawoza 22
23 Coza Loza 26 Coza Woza 29 Cozaloza 31 32 Coza
34 Lozawoza Coza 37 38 Coza Loza 41 Cozawoza 43 44
CozaLoza 46 47 Coza Woza Loza Coza 52 53 Coza Loza
Woza Coza 58 59 Cozaloza 61 62 Cozawoza 64 Loza Coza
67 68 Coza Lozawoza 71 Coza 73 74 Cozaloza 76 Woza
Coza 79 Loza Coza 82 83 Cozawoza Loza 86 Coza 88
89 Cozaloza Woza 92 Coza 94 Loza Coza 97 Woza Coza
Loza 101 Coza 103 104 Cozalozawoza 106 107 Coza 109 Loza
Trending now
This is a popular solution!
Step by step
Solved in 2 steps