$ step 1
id   customer               amount
1    Andi Pratama            24500
2    Budi Santoso            20000
3    Citra Dewi Lestari      24000
3 orders, total 68500
$ step 2
round 1: fscanf gave  3 -> #1 Andi Pratama 24500
round 2: fscanf gave  3 -> #2 Budi Santoso 20000
round 3: fscanf gave  3 -> #3 Citra Dewi Lestari 24000
round 4: fscanf gave -1 -> #3 Citra Dewi Lestari 24000
rounds: 4, total 92500 (should be 3 and 68500)
