main.c 685 B

12345678910111213141516171819202122232425262728293031323334
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include "govno.c"
  4. typedef struct {
  5. int ot;
  6. int doo;
  7. char str[100];
  8. } Polz;
  9. Polz polz() {
  10. Polz ret;
  11. printf("От ");
  12. scanf("%d", &ret.ot);
  13. if(ret.ot < 0) {
  14. ret.ot = 0;
  15. }
  16. printf("До ");
  17. scanf("%d", &ret.doo);
  18. if(ret.ot > ret.doo) {
  19. printf("НЕКОРРЕКТНО\n");
  20. exit(1);
  21. }
  22. printf("Что ");
  23. scanf("%99s", ret.str);
  24. return ret;
  25. }
  26. int main(void) {
  27. Polz r = polz();
  28. zzz(r.ot, r.doo, r.str);
  29. printf("\nГОЙДА ЕСТЬ\n");
  30. return 0;
  31. }