Está en la página 1de 3

#include <iostream>

#include <string>

using namespace std;

int main ()

int num1,num2,le,total;

cout<<"¿QUE OPERACION DESEAS HACER?"<<endl;

cout<<"1)Suma"<<endl;

cout<<"2)Resta"<<endl;

cout<<"3)Division"<<endl;

cout<<"4)Multiplicacion"<<endl;

cin>>le;

if (le == 1){

cout <<"Primer Numero:"<<endl;

cin>>num1;

cout <<"Segundo Numero:"<<endl;

cin>>num2;

total=num1+num2;

cout<<"Suma:"<<total;

}else if (le == 2){

cout <<"Primer Numero:"<<endl;

cin>>num1;

cout <<"Segundo Numero:"<<endl;

cin>>num2;

total=num1-num2;

cout<<"Resta:"<<total;

}else if(le == 3){


cout <<"Primer Numero:"<<endl;

cin>>num1;

cout <<"Segundo Numero:"<<endl;

cin>>num2;

total=num1/num2;

cout<<"Division:"<<total;

}else if (le == 4){

cout <<"Primer Numero:"<<endl;

cin>>num1;

cout <<"Segundo Numero:"<<endl;

cin>>num2;

total=num1*num2;

cout<<"Multiplicacion:"<<total;

}else{

cout <<"No es valido"<<endl;

return 0;

También podría gustarte