Hi, im very new to c++ syntax, i am trying to run a program but every time i run it it doen't get into the if
include "iostream"
using namespace std;
int main(){
int a = 0, b = 0, vueltas = 0;
cout <<"Enter A and B values respectively. Being A the given money to the cashier and B the cost"<< endl;
cin >> a; // paid
cin >> b; // price
if (a>b) {
// change to be given
cout<<"change to be given"<<endl;
vueltas = a - b;
// having in mind that change options are 5000,2000,1000,500 y 100
if (change>=5000) {
// give change in 5000 ticket
int billetes_5k = vueltas/5000;
vueltas = vueltas%5000;
cout<<"las vueltas despues del módulo:"<< vueltas<< endl;
}
}
else if (b>a){
// money missing
cout<<"Not enought money for paying";
}
else if (b=a){
// No change to be given
cout<<"Money paid and price match, no change needed.";
}
return 0;
}