Write all possible 3 digit number whose sum of digit is 4

Just consider the possible sums, then arrange the digits:

4+0+0 = 4 ---> 400
3+1+0 = 4 ---> 310 301 130 103
2+2+0 = 4 ---> 220 202
1+1+2 = 4 ---> 112 121 211

To find all the possible three-digit numbers whose sum of digits is 4, you can follow the steps below:

Step 1: Start with the smallest three-digit number whose sum of digits is 4, which is 112.
Step 2: Increment the number by 1.
Step 3: Calculate the sum of the digits of the new number.
Step 4: Repeat steps 2 and 3 until you reach the largest three-digit number whose sum of digits is 4, which is 400.

Here's a list of all the possible three-digit numbers whose sum of digits is 4:

112
121
211
202
220
302
320
311
131
113
221
212
413
431
422
242
314
431
413
404
440
323
233
134
143
152
161
170
104
140
113
131
221
214
311
113
122
212
221
230
302
230
230
311
302
050

There are a total of 50 possible three-digit numbers whose sum of digits is 4.