Post Reply 
hpgcc2 loop problem
03-17-2021, 01:19 AM
Post: #10
RE: hpgcc2 loop problem
It works properly with zint, thank you for everyone.
And, here is my last source code.
Code:
#include <hpgcc49.h>

int main(void)
{
    // sum 1 to n and counter i
    int n, i;
    int sum = 0;
    // fast mode
    sys_slowOff();
    // get stack 1 zint
    n = sat_pop_zint_llong();
    // calculate sum
    for (i = 1; i <= n; i++) {
        sum += i;
    }
    // output
    sat_push_zint_llong(sum);
    sys_slowOn();
    return(0);
}

S.Korean / HP-50G | fx-570EX | fx-570CW | HP-200LX
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
hpgcc2 loop problem - BINUBALL - 03-13-2021, 06:41 AM
RE: hpgcc2 loop problem - brickviking - 03-15-2021, 10:14 AM
RE: hpgcc2 loop problem - toml_12953 - 03-15-2021, 10:22 AM
RE: hpgcc2 loop problem - BINUBALL - 03-15-2021, 11:18 AM
RE: hpgcc2 loop problem - Egan Ford - 03-15-2021, 05:55 PM
RE: hpgcc2 loop problem - BINUBALL - 03-16-2021, 12:42 AM
RE: hpgcc2 loop problem - BINUBALL - 03-16-2021, 03:34 AM
RE: hpgcc2 loop problem - Egan Ford - 03-18-2021, 05:01 PM
RE: hpgcc2 loop problem - Claudio L. - 03-16-2021, 04:20 PM
RE: hpgcc2 loop problem - Egan Ford - 03-18-2021, 05:02 PM
RE: hpgcc2 loop problem - Claudio L. - 03-19-2021, 02:51 PM
RE: hpgcc2 loop problem - BINUBALL - 03-20-2021, 07:38 AM
RE: hpgcc2 loop problem - BINUBALL - 03-17-2021 01:19 AM



User(s) browsing this thread: 1 Guest(s)