mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-03-13 03:38:14 +00:00
27 lines
376 B
C
27 lines
376 B
C
#include <stdio.h>
|
|
|
|
int main(int argc, char **argv) {
|
|
|
|
double x,y;
|
|
|
|
for(y=0;y<1;y+=1.0/7.0) {
|
|
printf("%.2lf: ",y);
|
|
for(x=2.0+y;x<=9.0+y;x++) {
|
|
printf("%.2lf ",40/x);
|
|
}
|
|
printf("\n");
|
|
}
|
|
|
|
printf("\n");
|
|
|
|
for(y=0;y<1;y+=1.0/7.0) {
|
|
for(x=2.0+y;x<=9.0+y;x++) {
|
|
// printf("%.2lf ",40/x);
|
|
printf("%.1lf ",(40/x) - 40/(x+1));
|
|
}
|
|
printf("\n");
|
|
}
|
|
|
|
return 0;
|
|
}
|