All pastes #118380 Raw Edit

Something

public cpp v1 · immutable
·published 2006-08-06 10:28 UTC
rendered paste body
int main(){        double a=1.25, b=1.5, c=1.1, d=0, e, f;        while (a <= 1.51) {        while (b <= 1.51) {        while (c <= 1.51) {        d=7.11 - a - b - c;        e=a*b*c*d;        f=a+b+c+d;        if (f==e)//{        cout << "\n\nRadau!!! " << a << " " << b << " " << c << " " << d << endl << endl << endl;        c=c+0.01;}        b=b+0.01;}        a=a+0.05;}        system ("pause");        return 0;}Uzdavinys: Keturiu skaiciu suma ir sandauga lygi 7.11.Atsakymas 1.25 1.5 1.2 3.16Bet kazkodel programa jo neranda. :/Neuzskaito kaip gero atsakymo.