#include <stdio.h>

int main()
{
 int a,b;
    float r1;

     a=100;
  b=99;
 r1=a/b;

 printf("%f", r1);
}


 


 

저렇게해서 하면 1.000000으로 되서 왜 정수로 나오죠 r1은 float이라고 했는데


 

근데 int a,b 저기서 int를 float로 나오니까 1.010101으로 정상으로 나오는데..