Hi, i'm trying to creating a program on c++ which relates to weight
this is my problem so far
cout << "Enter weight between 1 to 60KG" << endl; cin >> weight; if (weight >= 1 && weight <= 60) cout << "Your weight is accepted" << endl; if (weight < 1 || weight > 60) cout << "Please enter weight between 1 to 60KG" << endl;
when i enter a number greater then 60 it still says weight accepted. i don't know why this is happening when it is suppose to say "please enter weight between 1 to 60kg"