From 5872de9c38b6640fbfc075d08ad95f11ce51ea9a Mon Sep 17 00:00:00 2001 From: Jason Pochanke Date: Sat, 3 Oct 2026 22:48:39 +0200 Subject: [PATCH] lesson 3 fix --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 361a82c..e61e1c2 100644 --- a/main.c +++ b/main.c @@ -4,7 +4,7 @@ int main(void) { int w, h; scanf("%d", &w); scanf("%d", &h); - long long area = w * h; + long long area = (long long)w * h; double ratio = (double)w/h; printf("%lld\n%.2f", area, ratio); // TODO: compute the area and the width-to-height ratio,