0
我想讓我的代碼寫入收據文件,輸入每個條形碼的產品和價格,然後打印該文件,但是此刻它停止寫入一旦第一個條形碼被輸入,但繼續詢問問題(它也停止詢問產品的數量)。我試圖製作一個產生收據的程序
的CSV:
34512340,bread,2.50,0
98981236,flour,1.79,0
56756777,pasta,1.49,0
90673412,milk,0.89,0
輸出:
Output of code:
Enter a Barcode? (Yes/No): yes
Enter Barcode: 56756777
Enter quantity of products: 7
Enter a Barcode? (Yes/No): yes
Enter Barcode: 98981236
Enter a Barcode? (Yes/No): no
Here is your Receipt:
56756777 10.43
Total: 10.43