#include <iostream>
#include <stdlib.h>
usingnamespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main() {
int num1;
int num2;
char choice;
cout<<"Random number will be generated:"<<endl;
num1=rand()%1000+1;
cout<<num1<<endl;
cout<<"Please enter your number: (1-100)"<<endl;
cin>>num2;
cout<<"Please choose an operation to execute the number:"<<endl;
cout<<"A:Addition"<<endl;
cout<<"b:Subtraction"<<endl;
cout<<"C:Multiplication"<<endl;
cout<<"D:Division "<<endl;
return 0;
switch(choice)
{
case"A":
case"a":
{
cout<<"The answer is:"<<num1+num2<<endl;
break;
}
case"B":
case"b":
{
cout<<"The answer is:"<<num1-num2<<endl;
break;
}
case"C":
case"c":
{
cout<<"The answer is:"<<num1*num2<<endl;
break;
}
case"D":
case"d":
{
cout<<"The answer is:"<<num1/num2<<endl;
break;
}
}
return 0;
}