Hello. I am trying to create a loop that when userinput == 'yes' for the question to continue, it will run the questions. But if the userinput == 'no', I want it to print 'Thank you'.
I am having trouble to get the code to execute the part when userinput == 'no'.
dia = input('Enter the circle diameter : ');
choice = input('Enter your choice : ');
fprintf('Area of circle = %.1f \n', area);
fprintf('Circumference of circle = %.1f \n', circum);
fprintf('Invalid choice \n');
answer = input('Do you want to continue? [yes/no] : ', 's');