[問題] 哪裡出錯了
一直找不出來
似乎是這行 d=a*(1-bc/100);
可是我看不出來是哪裡錯了
請幫我
謝謝
#include <iostream>
using namespace std;
int a;
int b;
int c;
int d;
void main(void)
{
cout<<"received_amount=";
cin>>a;
cout<<"interest_rate(%)=";
cin>>b;
cout<<"duration(month)=";
cin>>c;
d=a*(1-bc/100);
cout<<"face_value="<<d<<endl;
cout<<"monthly_payment="<<a/b<<endl;
}
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.117.181.106
→
02/21 12:13, , 1F
02/21 12:13, 1F
→
02/21 12:15, , 2F
02/21 12:15, 2F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章