50 likes | 140 Views
ConTROL SYSTEMS M. Antczak , S. Wąsik. main.c. # include < stdio.h > int main () { while (1) { int temperatura, pojemnosc ; scanf ("%d %d", &temperatura, & pojemnosc ); if (temperatura < 5000) printf ("10"); else printf ("0"); printf (" ");
E N D
ConTROL SYSTEMS M. Antczak, S. Wąsik
main.c #include <stdio.h> intmain() { while (1) { int temperatura, pojemnosc; scanf("%d %d", &temperatura, &pojemnosc); if (temperatura < 5000) printf("10"); elseprintf("0"); printf(" "); if (pojemnosc < 5000) printf("%d", 5000 - pojemnosc); elseprintf("0"); printf("\n"); fflush(stdout); } return 0; } Build & run