Ŀ

գҪıйص䡣
һ repeat (0<repeat<10) repeat 㣺
Ƥ heightף߶£غ󷴵ԭ߶ȵһ룬£ٷ˷Ƥڵ n ʱڿһپ룿 n ηĸ߶Ƕ٣(1λС) 
ʾ˵

3		(repeat=3)
10  2		(height=10m, n=2)
4   1		(height=2m, n=1)
100 8		(height=100m, n=8)

distance=20.0, height=2.5	(2ʱоΪ20, 2η߶Ϊ2.5)
distance=4.0, height=2.0	(1ʱоΪ4ף1η߶Ϊ2)
distance=298.4, height=0.4	(8ʱоΪ298.4ף8η߶Ϊ0.4)



#include <stdio.h>
int main(void)
{
    int i, n;
    int repeat, ri;
    double distance, height; 

    scanf("%d", &repeat);
    for(ri = 1; ri <= repeat; ri++){
        scanf("%lf%d", &height, &n);
/*---------*/
      	printf("distance = %.1f, height = %.1f\n", distance, height);
   }
}
