Write a c++ program that asks the user to enter two numbers (from 100 to 999) to create a matrix that have the size [a][5]. Then, the program will reverse the digits of each element in that matrix and it will print it again. As shown in figures below Enter start number of elements to make your array shoud be(from 100 to 999): 100 Enter the end number of elements to make your array, should be greater than the first number : 115 10e 101 102 103 104 1e5 106 107 108 109 110 111 112 113 114 The matrix after reversing the digits of each element will be : 1 181 201 301 401 601 701 Be1 ge1 411 501 11 111 211 311 Process exited after 4.309 seconds with return value e Press any key to continue Enter start number of elements to make your array shoud be(from 100 to 999): 120 Enter the end number of elements to make your array, should be greater than the first number : 170 120 121 122 123 124 127 128 125 126 129 130 131 132 133 134 135 136 137 138 139 144 149 154 140 141 142 143 145 146 150 151 147 152 153 155 156 157 158 159 162 163 167 168 148 160 161 165 166 164 169 The matrix after reversing the digits of each element will be 21 121 221 321 421 521 621 721 821 921 31 131 531 631 141 231 331 731 831 241 341 741 841 431 931 441 941 41 $41 641 51 151 251 351 451 551 651 751 851 951 61 161 261 361 461 561 661 761 861 961 Process exited after 7.571 seconds with return value e Press any key to continue.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter8: Arrays And Strings
Section: Chapter Questions
Problem 11PE
icon
Related questions
Question
i need the answer quickly
Write a c++ program that asks the user to enter two numbers (from 100 to 999) to create a
matrix that have the size [a][5]. Then, the program will reverse the digits of each element in
that matrix and it will print it again. As shown in figures below
Enter start number of elements to make your array shoud be(from 100 to 999): 100
Enter the end number of elements to make your array, should be greater than the first number : 115
104
108 109
113 114
100 101 1e2
103
105 106 107
110 111
112
The matrix after reversing the digits of each element will be :
1 101 201 3e1 401
501 681 701 se1 901
11 111 211 311 411
Process exited after 4.309 seconds with return value e
Press any key to continue.
Enter start number of elements to make your array shoud be(from 1ee to 999): 120
Enter the end number of elements to make your array, should be greater than the first number: 170
120 121 122 123 124
127
132
137
125 126
130 131
128 129
133
134
138
139
135 136
140 141
142
143
144
145 146
150 151
155 156
147
148
149
152
153
154
159
164
168 169
157
158
163
160
161
162
165 166 167
The matrix after reversing the digits of each element will be :
21
121
221 321 421
521
621
721
821
921
31
131
231
331
431
531
631
731 831
931
41
141
241
341
441
541
641
741
251
841
351
851
941
51 151
451
951
551
651
751
61 161
261
361
461
561
661
761
861 961
Process exited after 7.571 seconds with return value e
Press any key to continue
Transcribed Image Text:Write a c++ program that asks the user to enter two numbers (from 100 to 999) to create a matrix that have the size [a][5]. Then, the program will reverse the digits of each element in that matrix and it will print it again. As shown in figures below Enter start number of elements to make your array shoud be(from 100 to 999): 100 Enter the end number of elements to make your array, should be greater than the first number : 115 104 108 109 113 114 100 101 1e2 103 105 106 107 110 111 112 The matrix after reversing the digits of each element will be : 1 101 201 3e1 401 501 681 701 se1 901 11 111 211 311 411 Process exited after 4.309 seconds with return value e Press any key to continue. Enter start number of elements to make your array shoud be(from 1ee to 999): 120 Enter the end number of elements to make your array, should be greater than the first number: 170 120 121 122 123 124 127 132 137 125 126 130 131 128 129 133 134 138 139 135 136 140 141 142 143 144 145 146 150 151 155 156 147 148 149 152 153 154 159 164 168 169 157 158 163 160 161 162 165 166 167 The matrix after reversing the digits of each element will be : 21 121 221 321 421 521 621 721 821 921 31 131 231 331 431 531 631 731 831 931 41 141 241 341 441 541 641 741 251 841 351 851 941 51 151 451 951 551 651 751 61 161 261 361 461 561 661 761 861 961 Process exited after 7.571 seconds with return value e Press any key to continue
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning