21 lines
288 B
C
21 lines
288 B
C
#include <stdio.h>
|
|
|
|
int main()
|
|
{
|
|
int pic;
|
|
int rate;
|
|
double usb;
|
|
int div;
|
|
|
|
for ( pic=1; pic<=64 ; pic++ )
|
|
{
|
|
rate = 40000000 / ((pic+1)*16);
|
|
usb = 3000000.0 / (double)rate;
|
|
|
|
div = (int)usb;
|
|
if ( usb - (double)div < .01 )
|
|
printf( "%d = %d, %.2f\n", pic, rate, usb );
|
|
}
|
|
}
|
|
|