#include <iostream>
#include <conio.h>
#include <math.h>
using namespace std;
class operaciones{
int dividendo;
int divisor;
int cociente;
int resto;
public:
void calcular();
void mostrar();
void divicion();
void operaciones::division()
{
cociente_resto=dividendo/divisor;
}
void operaciones::calcular_cociente_resto()
{
dividendo=resto;
cociente=0;
while(resto>=divisor){
resto=resto-divisor;
cociente=cociente+1;
}
}
void operaciones::mostrar_cociente_resto()
{
cout<<"el cocinte de la division es"<<cociente;
cout<<"el resto es"<<(resto);
system("pause");
}
void main()
{
int op;
operaciones a;
do{
system ("cls");
cout<<"una division 2 numeros\n";
cout<<"el cociente y el resto es"<<cociente<<resto;
cout<<"introduzca una opcion";
cin>>op;
if(op==1)
{
cociente_resto=dividendo/divisor;
a.division();
}
if(op==2)
{
cout<<"el cociente y el resto es"<<cociente<<resto;
a.mostrar_cociente_resto();
}
cout<<"preciones cero
- para salir y tres [3] para continuar";
}while(op!=0)