08/01/15 10:50:19
スレリンク(tech板:985番)
これじゃだめかな?
#include <stdio.h>
#include <math.h>
int main(void)
{
unsigned int A, B = 1;
A = B * (unsigned int)M_PI;
while (A <= 0xffffffff) {
printf("A = %d, B = %d\n", A, B);
B++;
A = B * (unsigned int)M_PI;
}
return 0;
}