#include <stdio.h> int main() { int n; int i; int g; int q; int t; int r; int e; int c; int v; t=1; for(v=8; v<=9; v++) { for(e=3; e<=9; r+=2) //e { for(c=2; c<=9; c++) { for(n=0; n<=9; n++) { for(i=0; i<=9; i++) { for(g=0; g<=9; g++) { for(q=0; q<=9; q++) { if(i!=n!=q!=e!=g!=t!=c!=v!=r) { if(v*10000+i*1000+n*100+g*10+t +c*1000+i*100+n*10+q +c*1000+i*100+n*10+q== t*100000+r*10000+e*1000+n*100+t*10+e) { printf("VINGT=%d CINQ=%d CINQ=%d TRENTE=%d\n", v*10000+i*1000+n*100+g*10+t, c*1000+i*100+n*10+q, c*1000+i*100+n*10+q, t*100000+r*10000+e*1000+n*100+t*10+e); } } } } } } } } } }