Task №149
#include <stdio.h>
#include <stdlib.h>
#define taller 1770
#define horse 31
#define bull 27
int main()
{
int i = 0, count = 0;
while ( (horse * i) <= taller )
if ( !((taller - horse * i++) % bull) )
printf("\n%i horses and %i bulls count = %i", i - 1, (taller - horse * (i - 1)) / bull, ++count);
puts("\n");
return 0;
}INFO