1、
#include <stdio.h> int main(void) { float x1 = -0.01; int x2 = 0; int i; for(i = 0; i <= 100; i++) { printf("x = %f x = %f ", x1 += 0.01, x2++ / 100.0); } return 0; }