summaryrefslogtreecommitdiff
path: root/wk2/pset2/readability
diff options
context:
space:
mode:
Diffstat (limited to 'wk2/pset2/readability')
-rw-r--r--wk2/pset2/readability/readability.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wk2/pset2/readability/readability.c b/wk2/pset2/readability/readability.c
index 58fc18a..b094859 100644
--- a/wk2/pset2/readability/readability.c
+++ b/wk2/pset2/readability/readability.c
@@ -31,7 +31,7 @@ int main(void)
while (c != '\0');
printf("s: %i w: %i l: %i\n", s, w, l);
float L = (float)(l / w) * 100;
- float S = (float)(s / w) * 100;
+ float S = (double)(s / w) * 100;
float index = 0.0588 * L - 0.296 * S - 15.8;
printf("L: %f, S: %f, Grade: %f\n", L, S, index);
}