12342 ÷ 2 = 6171 R0
Let's divide 12342 by 2.

Step 1:
2 goes into 1 0 times with a remainder of 1.
Write down 0 as next digit of of the result. 
Result so far: 0
Subtract 0 from 1 to get 1.
Bring next digit (2) of the dividend behind the 1 and repeat the process: 12 / 2

Step 2:
2 goes into 12 6 times with a remainder of 0.
Write down 6 as next digit of of the result. 
Result so far: 6
Subtract 12 from 12 to get 0.
Bring next digit (3) of the dividend behind the 0 and repeat the process: 3 / 2

Step 3:
2 goes into 3 1 times with a remainder of 1.
Write down 1 as next digit of of the result. 
Result so far: 61
Subtract 2 from 3 to get 1.
Bring next digit (4) of the dividend behind the 1 and repeat the process: 14 / 2

Step 4:
2 goes into 14 7 times with a remainder of 0.
Write down 7 as next digit of of the result. 
Result so far: 617
Subtract 14 from 14 to get 0.
Bring next digit (2) of the dividend behind the 0 and repeat the process: 2 / 2

Step 5:
2 goes into 2 1 times with a remainder of 0.
Write down 1 as next digit of of the result. 
Result so far: 6171
Subtract 2 from 2 to get 0.

The final result is 6171 with a remainder of 0.