this is another question from my review... i need change an if.. else to a switch case and a while loop to a for keeping the program logic.
this is the code givin
Code:
do{
choice = menu();
if(choice == 1){
addtogether(one, two);
}else
if(choice == 2){
multiply(one, two);
}else
if(choice == 3){
listall(one, two);
}
}while(choice != 4);
this is what i have ...
Code:
int choice(one,two,choice){switch(choice){
case 1:addtogether(one,two);break;
case 2:multiply(one,two);break;
case 3:listall(one,two);break;}
would i have to incorporate a for loop? and if so how?
I'm just not really confident with my programming at this point so I'm a bit worried