הורדתי קצת דברים מיותרים
ושיניתי כמה דברים שיכלו לגרום לבעיות בכמה קומפיילרים #include<stdio.h> int main(void) { int ins_price,price_total=0; int i; for (i=1;i<4;i++) { printf("Insert the price of product %d: \n", i); scanf("%d",&ins_price); price_total = price_total + ins_price; } price_total = price_total*1.2; printf("\nSum of all 3 products after tax: %d", price_total); return(0); }
|