Can anyone points out what is wrong with my code? Determine the total price of the products purchase and possible change
So I far, I’ve gotten a lot of issues with this program I need the possible output to be correct: || Enter product1 price: Enter product2 price: Enter the amount to pay: Total price: Change if there is: || What I have tried, yet #include <iostream> using namespace std; int main(){ int product1; int product2; int amount_to_pay; int total_price; int change; cout<<"Product1: "<<endl; cin>>product1; cout<<"Product2: "<<endl; cin>>product2; cout<<"Enter the amount to pay: "<<amount_to_pay; cin>>amount_to_pay; total_price=product1+product2; cout<<"Total price: "<<total_price<<endl; change=amount_to_pay-total_price; cout<<"Your change: "<<change<<endl; return 0; } Which brought alot of errors like the integer point when calling the output text “amount_to_pay”