- English
- فارسی
16-1
#include <iostream.h> void main(void) { int x1, x2, x3, x4, x5; for (x1=1 ; x1<10 ; x1++) for (x2=0 ; x2<10 ; x2++){ if (x1 != 2*x2-1) continue; for (x3=0 ; x3<10 ; x3++) { if (x2+x3 != 10) continue; for (x4=0 ; x4<10 ; x4++) { if (x4!=x2+1) continue; for (x5=0 ; x5<10 ; x5++) { if (x5+x3 != 14) continue; if (x1+x2+x3+x4+x5 != 30) continue; cout << x1 << x2 << x3 << x4 << x5 << endl; } } } } }