利息?hii

#include<stdio.h>
void main()
{
for(;;)
{
float bj,lx=0,ll,d;
printf("输入本金:");
scanf("%f",&bj);
printf("输入年利率:");
scanf("%f",&ll);
printf("输入借贷天数:");
scanf("%f",&d);
if(ll==-1) break;
else
{
lx=bj*ll*d/365;
printf("利息是:%f

",lx);
continue;
}
}
return o;
}

  

原文地址:https://www.cnblogs.com/YuzurihaInori/p/6224524.html