Primer Programa «Numbers»

Well, this is my first programm and honestly it´s too complicated to me, cause i really don´t like programming so it won´t be easy for me this semester. I used help from the book and some videos of youtube to code this programm and i recived some help from priscila too.

#include <iostream>
using namespace std;
int main(){

int a, b, s, d, m, di, r;

cout<<«Calculadora»<<endl;
cout<<«Introduce el primer núemro»<<endl;
cin>>a;
cout<<«INtroduce un numero»<<endl;
cin>>b;
s=a+b;
d=a-b;
m=a*b;
di=a/b;
r=a%b;
cout<<«La Suma es:» <<a<< » + » <<b<< «= » <<s<<endl;
cout<<«La diferencia es:» <<a<< » – » <<b<< «= «<<d<<endl;
cout<<«El producto es » <<a<< » x » <<b<< «= «<<m<<endl;
cout<<«La división es» <<a<< » / » <<b<< «= «<<di<<endl;
cout<<«El resuido es » <<a<< » / » <<b<< «= «<<r<<endl;

Deja un comentario