I'm trying to get it to work like if I earned 5 apples but I only earned 2 - I want it to be able to detect no and yes and let me either input the right amount or go to the next question.
using namespace std;
cout<<"How many apples have you earned?";
cout<<"You entered: "<< thisisanumber <<"\n";
cout<<"Is this amount correct?"<< thisisno <<"\n";
cout<<"Please enter the correct amount:"<< thisisno <<"\n";
cout<<"How many grapes have you earned?"<< thisisyes <<"\n";