/* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Author: Marco Vitetta E-mail: WebSite: http://ervito.altervista.org */ #include #include #include int chk(char *STRING,int START); int main() { char concatenation[10],to_concatenate[6]; int flag,index,multipler=2,multiplicand,number_products=0,products[20],sum_products=0; for(;multipler<2000;multipler++) for(multiplicand=multipler;multiplicand<2000;multiplicand++) { sprintf(concatenation,"%i",multipler); sprintf(to_concatenate,"%i",multiplicand); strcat(concatenation,to_concatenate); sprintf(to_concatenate,"%i",multipler*multiplicand); strcat(concatenation,to_concatenate); if(strlen(concatenation)==9&&chk(concatenation,1)) { for(index=flag=0;index1 && length<11 && max_value<11 && START>=0 && START<9) { int array[length],index=0,support; for(;index=START && support