Tanong ko lang po sana kasi kapag tinatype ko ang 1 sa choice dito sa output ko hindi niya tinatawag yung addition()
ps: hidepost ko na po muna, may nakikita kasi akong student dito na ka same school ko na leechers, for safety nadin po and para hindi mareport sa instructor ehe
nandito yta issue mo. kasi yung choice is greater than 1. kya automatic mapunta sa if else break;.to test kung mapunta nga jan. try mo mag lagay ng print code before break or to test yung possible result na gusto mo.
{
cout << "Press 1 to 8 only: ";
cin >> choice;
if (choice >= 1 && choice < 8)
{
cout << "Invalid Input. ";
break;
}
else
{
cout << "Invalid Input. ";
}
}
nandito yta issue mo. kasi yung choice is greater than 1. kya automatic mapunta sa if else break;.to test kung mapunta nga jan. try mo mag lagay ng print code before break or to test yung possible result na gusto mo.
{
cout << "Press 1 to 8 only: ";
cin >> choice;
if (choice >= 1 && choice < 8)
{
cout << "Invalid Input. ";
break;
}
else
{
cout << "Invalid Input. ";
}
}
ganito po sana yung expected kong output based sa output ng instructor ko .
tatawagin niya yung case 1 which is yung addition() na nasa arithmetic.h header file.
ganito po sana yung expected kong output based sa output ng instructor ko View attachment 1955012.
tatawagin niya yung case 1 which is yung addition() na nasa arithmetic.h header file.