6997 ÷ 9 = 777 R4
We're going to perform division on 6997 with 9 as the divisor.

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

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

Step 3:
9 goes into 69 7 times with a remainder of 6.
Write down 7 as next digit of of the result. 
Result so far: 77
Subtract 63 from 69 to get 6.
Bring next digit (7) of the dividend behind the 6 and repeat the process: 67 / 9

Step 4:
9 goes into 67 7 times with a remainder of 4.
Write down 7 as next digit of of the result. 
Result so far: 777
Subtract 63 from 67 to get 4.

The final result is 777 with a remainder of 4.