Input = Fourdigitnum
Output = digit1, digit2, digit3, digit4
Major Task (Module/Subproblems)
1. Receive Fourdigitnum
2. Extract the Fourdigitnum received
3. Remove the digit from the original number
4. Display digit
5. Repeat Step 2
1. Fourdigitnum ("Enter a four-digit positive integer: ")
Receive Fourdigitnum
2. digit1= (Fourdigitnum)/1000
3. (Fourdigitnum)%1000
Fourdigitnum=Fourdigitnum/100
digit2=Fourdigitnum
Fourdigitnum=Fourdigitnum/10
digit3= Fourdigitnum
Fourdigitnum=Fourdigitnum%10
digit4= Fourdigitnum
4. Display digit1, digit2, digit3, digit4
5. End Repeat