בשלי יש כמה דברים מיותרים.
פשוט לא היה לי זמן באותו זמן.
אם אתה עדיין רוצה קוד, טוב יותר.
אז הנה: #include <stdio.h> void main () { int x,y,z,a,b; printf("Enter how much people in the first class\n"); scanf("%d", &x); printf("Enter how much people in the second class\n"); scanf("%d", &y); printf("Enter how much people in the third class\n"); scanf("%d", &z); a=x+y+z; if (a % 40 == 0) { b = a/40; } else { b = (a/40) + 1; } printf("Buss needed: %d\n", b); }
|
s22holyshits33
אני מלך