#include <stdio.h>
#include <math.h>
void test(float a, float b, float c) {
int n = round((c-a) / (b-a));
for (int i=0; i<=n; i++) {
printf("%g ", i*(b-a)+a);
}
printf("\n");
}
void test_floor(float a, float b, float c) {
int n = floor((c-a) / (b-a));
for (int i=0; i<=n; i++) {
printf("%g ", i*(b-a)+a);
}
printf("\n");
}
int main() {
test(1.3, 1.6, 2.8);
test_floor(1.3, 1.6, 2.8);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxtYXRoLmg+Cgp2b2lkIHRlc3QoZmxvYXQgYSwgZmxvYXQgYiwgZmxvYXQgYykgewogICAgaW50IG4gPSByb3VuZCgoYy1hKSAvIChiLWEpKTsKICAgIGZvciAoaW50IGk9MDsgaTw9bjsgaSsrKSB7CiAgICAgICAgcHJpbnRmKCIlZyAiLCBpKihiLWEpK2EpOwogICAgfQogICAgcHJpbnRmKCJcbiIpOwp9Cgp2b2lkIHRlc3RfZmxvb3IoZmxvYXQgYSwgZmxvYXQgYiwgZmxvYXQgYykgewogICAgaW50IG4gPSBmbG9vcigoYy1hKSAvIChiLWEpKTsKICAgIGZvciAoaW50IGk9MDsgaTw9bjsgaSsrKSB7CiAgICAgICAgcHJpbnRmKCIlZyAiLCBpKihiLWEpK2EpOwogICAgfQogICAgcHJpbnRmKCJcbiIpOwp9CgppbnQgbWFpbigpIHsKICAgIHRlc3QoMS4zLCAxLjYsIDIuOCk7CiAgICB0ZXN0X2Zsb29yKDEuMywgMS42LCAyLjgpOwogICAgcmV0dXJuIDA7Cn0=