---+Getting zeros for all my output 1. A percentage is a floating number, so you need to do floating point arithmetic. 1. Don't make your counters floating point variables. Just multiple them by 1.0 in your expression when outputting.
This topic: CenterForComputing
>
WebHome
>
Syllabi
>
CSC121SylS2023
>
CSC121S2023Lab03
>
CSC121S2023Lab3H3
Topic revision: r1 - 2022-12-29 - cathybareiss
Copyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback