#include <stdio.h>

int main ( void )
{
        float principal;
        float rate;
        int days;
        float interest;

        printf( "Enter loan principal(-1 to end):" );
        scanf( "%f", &principal );
        printf( "Enter Interest rate: " );
        scanf( "%f", &rate );
        printf( "Enter term of the loan In days:" );
        scanf( "%f", &days);
        interest = principal * rate * days / 365;
        printf( "The Interest charge Is $%f\n", interest );

        return 0;
}

이러고 출력하면 interest charge 부분에 100이 나와야하는데

왜 저는 어마어마한 수가 나와버리는걸까요..ㅜ

알려주시면 감사하겠습니다.