summaryrefslogtreecommitdiff
path: root/wk2/pset2/readability
diff options
context:
space:
mode:
Diffstat (limited to 'wk2/pset2/readability')
-rw-r--r--wk2/pset2/readability/readability.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/wk2/pset2/readability/readability.c b/wk2/pset2/readability/readability.c
index 0967c94..ab66ed3 100644
--- a/wk2/pset2/readability/readability.c
+++ b/wk2/pset2/readability/readability.c
@@ -28,15 +28,15 @@ int main(void)
{
l++;
}
- }
+ }Congratulations! Today is your day. You're off to Great Places! You're off and away!
while (c != '\0');
- printf("s: %f w: %f l: %f\n", s, w, l);
+ //printf("s: %f w: %f l: %f\n", s, w, l);
float L = (float)(l / 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);
- index = round(index);
- printf("Grade: %f\n", index);
+ //printf("L: %f, S: %f, Grade: %f\n", L, S, index);
+ int ans = round(index);
+ printf("Grade: %i\n", ans);
}
/*