#include <iostream>
usingnamespace std;
int sum(int num1,int num2){
int sum;
sum = num1 + num2;
return sum;
}
int divider(int num1,int num2){
int sum;
sum = num1 / num2;
return sum;
}
int main() {
char q ='y'; // to quite the programme
int choose;
while(q == 'y'){
cout <<"Welcome to the super programme"<<endl;
cout <<"1- finding the sum of the numbers."<<endl;
cout <<"2- finding the divide of the numbers."<<endl;
cout <<"please choose which programe you want:"<<endl;
cin >> choose;
while(choose < 1 || choose > 2){
cout<<"please choose ethir '1' or '2'";
cin >> choose;
}
if(choose == 1){
int num1, num2, total;
cout <<"Please enter a number numbers:";
cin >> num1;
cout <<"Please enter another number:";
cin >> num2;
total = sum(num1,num2);
cout << "The result is " << total << endl;
}elseif(choose == 2){
int num1, num2, total;
cout <<"Please enter a number numbers:";
cin >> num1;
cout <<"Please enter another number:";
cin >> num2;
total = divider(num1,num2);
cout << "The result is " << total << endl;
}
cout <<" ,Repeat?";
cin >> q;
}
return 0;
}