Task №149 

Run Settings
LanguageC++
Language Version
Run Command
#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; }
Editor Settings
Theme
Key bindings
Full width
Lines