כתבתי תוכנית פועלת במימוש שלה.
אבל מה כאשר אני מכניס מספר כלשהו אז אני צריך להכניס אותו פעמים. ואני לא יודע למה זה קורא.
זאת התוכנית שלי:
קוד:#include <stdio.h> void main () { float X,Y,M,Mas=0.9,Tos=1.05; printf("Enter your lawary\n"); scanf("%f\n",&M); if ((3850<M)&&(M<6000)) { printf("No change to your lawary"); } else if (3850>M) { X=M*Tos; printf("Lawary increases in 5%\n"); printf("Your Lawary now is %f\n",X); } if (6000<M) { Y=M*Mas; printf("Lawary decrease in 10%\n"); printf("Your lawary now is %f\n",Y); } }



ציטוט ההודעה

