my/c/l15/main.c

35 lines
685 B
C
Raw Permalink Normal View History

2026-07-12 14:16:22 +03:00
#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;
}