看板 C_and_CPP 關於我們 聯絡資訊
一直找不出來 似乎是這行 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
COLDTURNIP:沒有宣告「bc」這個變數。 02/21 12:13
fkms:謝謝..bc應該寫成b*c 感恩 02/21 12:15