mirror of
https://github.com/nolongeractivemp3/shipthatcode-c.git
synced 2026-11-24 10:45:12 +01:00
lesson 3 done
This commit is contained in:
1 parent
5ccb168902
commit
45e4638548
1 file changed
+1
-1
@@ -6,7 +6,7 @@ int main(void) {
|
|||||||
scanf("%d", &h);
|
scanf("%d", &h);
|
||||||
long long area = w * h;
|
long long area = 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,
|
||||||
// then print them on two lines as the exercise describes.
|
// then print them on two lines as the exercise describes.
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in new issue
Block a user