35 lines
685 B
C
35 lines
685 B
C
|
|
#include <stdio.h>
|
|||
|
|
#include <stdlib.h>
|
|||
|
|
#include "govno.c"
|
|||
|
|
|
|||
|
|
typedef struct {
|
|||
|
|
int ot;
|
|||
|
|
int doo;
|
|||
|
|
char str[100];
|
|||
|
|
} Polz;
|
|||
|
|
|
|||
|
|
Polz polz() {
|
|||
|
|
Polz ret;
|
|||
|
|
printf("От ");
|
|||
|
|
scanf("%d", &ret.ot);
|
|||
|
|
if(ret.ot < 0) {
|
|||
|
|
ret.ot = 0;
|
|||
|
|
}
|
|||
|
|
printf("До ");
|
|||
|
|
scanf("%d", &ret.doo);
|
|||
|
|
if(ret.ot > ret.doo) {
|
|||
|
|
printf("НЕКОРРЕКТНО\n");
|
|||
|
|
exit(1);
|
|||
|
|
}
|
|||
|
|
printf("Что ");
|
|||
|
|
scanf("%99s", ret.str);
|
|||
|
|
return ret;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
int main(void) {
|
|||
|
|
Polz r = polz();
|
|||
|
|
zzz(r.ot, r.doo, r.str);
|
|||
|
|
printf("\nГОЙДА ЕСТЬ\n");
|
|||
|
|
return 0;
|
|||
|
|
}
|