OUTPUT равен 0. Базовый простой вопрос интереса [закрыто] ⇐ C++
-
Гость
OUTPUT равен 0. Базовый простой вопрос интереса [закрыто]
I have been trying to do some basic function call and function in C++, and got wrong output as 0 in calculation of simple interest. Need help with this.
using namespace std; int SI(int principle, int rate, int time){ int result = (principle * rate * time) / 100; cout principle>> rate>> time; simple_interest=SI(principle,rate,time); return 0; } type here
expected value not found
I have been trying to do some basic function call and function in C++, and got wrong output as 0 in calculation of simple interest. Need help with this.
using namespace std; int SI(int principle, int rate, int time){ int result = (principle * rate * time) / 100; cout principle>> rate>> time; simple_interest=SI(principle,rate,time); return 0; } type here
expected value not found
Мобильная версия