Difference: CSC121S2023Lab3H3 ( vs. 1)

Revision 12022-12-29 - cathybareiss

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="CSC121S2023Lab03"

Getting zeros for all my output

  1. A percentage is a floating number, so you need to do floating point arithmetic.
  2. Don't make your counters floating point variables. Just multiple them by 1.0 in your expression when outputting.
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 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