Thank you very much for your help!!!
I think I found errors...
For the first one, there is no statement to exit the program and for the second one, there is "else if" instead of "if".
Type: Posts; User: tosihiro2007
Thank you very much for your help!!!
I think I found errors...
For the first one, there is no statement to exit the program and for the second one, there is "else if" instead of "if".
//question 1
int main()
{
int choice = -1, num1,num2,trials = 0;
//give the user a max of five trials
while((choice = -1) && trials <5)
{
printf("Enter a number : ");