Need help with psuedocode...not sure how to set it up.?

Allow the user to inter a series of temperature in degrees Celsius (c) terminated by the input of -999. For each one find the corresponding temperature in degrees Fahrenheit (f). The conversion formula is:

Compute F = (9 * c/5) + 32 (Psuedocode)

2 Answers

Relevance
  • Runa
    Lv 7
    9 years ago
    Favourite answer

    float it, ot;

    get it

    loop while it not = 999)

    ot=9.0*it/5+32

    print it, ot

    get it

    end loop

  • 9 years ago

    float it, ot;

    scanf("%f", &it);

    while(it !=-999)

    {

    ot=9.0*it/5+32;

    printf("%f %f\n", it, ot);

    scanf("%f", &it);

    }

Still have questions? Get answers by asking now.