Sei sulla pagina 1di 1

#include <iostream.

h>
#include <stdio.h>
#include <conio.h>
int main()
{
int a,b;
cout<<"Ingrese el primer numero:\n";
cin>>a;
cout<<"Ingrese el segundo numero:\n";
cin>>b;
if(a!=b){
int s;
s=a+b;
cout<<"La suma es:"<<s<<endl;
}
if(a!=b){
int r;
r=a-b;
cout<<"La resta es:"<<r<<endl;
}
if(a!=b){
int m;
m=a*b;
cout<<"La multiplicacion es:"<<m<<endl;
}
if(b!=0){
double x,y,d;
cout<<"Ingrese el divisor:\n";
cin>>x;
cout<<"Ingrese el dividendo:\n";
cin>>y;
d=x/y;
cout<<"La division es:"<<d<<endl;
}

getch();
return 0;
}

Potrebbero piacerti anche