i am making simple interest program in cpp by using vs code normal code worked but when i am using ‘‘cin’’ statement for taking input its not working.
its showing"
no operator"<<“matches these operands – operand types are: std::istream << int” in problem section
why its not working in vs code?
please tell asap
''cin'' statement is not working
#include
using namespace std;
int main(){
int p,r,t;
float si;
cin<<p;
cin<<r;
cin<<t;
si = prt/100.0;
cout<<si<<endl;
return 0;
}
i have used iostream but still its not working
here was the error. u were using << while it should be >>
I have corrected ur code
thank you very much i really appreciate that !
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.