lesson 3 fix

This commit is contained in:
deck committed 2026-10-03 22:48:39 +02:00
1 parent 45e4638548
commit 5872de9c38
1 file changed
+1 -1
+1 -1
View File
@@ -4,7 +4,7 @@ int main(void) {
int w, h; int w, h;
scanf("%d", &w); scanf("%d", &w);
scanf("%d", &h); scanf("%d", &h);
long long area = w * h; long long area = (long long)w * h;
double ratio = (double)w/h; double ratio = (double)w/h;
printf("%lld\n%.2f", area, ratio); printf("%lld\n%.2f", area, ratio);
// TODO: compute the area and the width-to-height ratio, // TODO: compute the area and the width-to-height ratio,