How should this switch statement be correctly rapped into a do while loop? I need the switch statement to loop until the user selects a correct option.
Code:scanf("%d", &options);
switch (options)
{
case 1 :
{
sumIntegers ();
break;
}
case 2 :
{
sumDoubles ();
break;
}
case 3 :
{
calcFactorial ();
break;
}
default :
{
printf("invalid choice. Please choose correctly.\n");
}
}