Untitled

 avatar
unknown
plain_text
2 years ago
754 B
4
Indexable
int main()
{
    int predkosc;
    int wynik;

    cin >> predkosc;
    cout << endl;

    _asm {
        mov eax, predkosc;
        cmp eax, 51;
        jl ok;
        jge m1;
    ok:
        mov eax, 0;
        mov wynik, eax;
    m1:
        cmp eax, 70;
        jle sto;
        jg m2;
    sto:
        mov eax, 100;
        mov wynik, eax;
    m2:
        cmp eax, 90;
        jle dwiescie;
        jg m3;
    dwiescie:
        mov eax, 200;
        mov wynik, eax;
    m3:
        cmp eax, 110;
        jle piecset;
        jg tysiac;
    piecset:
        mov eax, 500;
        mov wynik, eax;
    tysiac:
        mov eax, 100;
        mov wynik, eax;
    }
    cout << wynik << "zl mandatu" << endl;
}

Editor is loading...