mirror of
https://github.com/nolongeractivemp3/shipthatcode-c.git
synced 2026-11-24 10:45:12 +01:00
15 lines
343 B
C
15 lines
343 B
C
#include <stdio.h>
|
|
|
|
int main(void) {
|
|
int w, h;
|
|
scanf("%d", &w);
|
|
scanf("%d", &h);
|
|
long long area = w * h;
|
|
double ratio = (double)w/h;
|
|
printf("%lld \n %.2f", area, ratio);
|
|
// TODO: compute the area and the width-to-height ratio,
|
|
// then print them on two lines as the exercise describes.
|
|
return 0;
|
|
|
|
}
|