The videos that helped me:

The code I used:

#include <iostream>

using namespace std;
int main ()

{

int a, b, R, S;
cout<<“¡A sumar!”<<endl;
cout<<“Escribe el primer numero:”<<endl;
cin>>a;
cout<<“Escribe el segundo numero:”<<endl;
cin>>b;
R=a+b;
cout<<“El resultado es:”<<R<<endl;

cout<<“¡A dividir!”<<endl;
cout<<“Escribe el primer numero:”<<endl;
cin>>a;
cout<<“Escribe el segundo numero:”<<endl;
cin>>b;
R=a/b;

D=a%b;
cout<<“El resultado es:”<<R<<endl;

cout<<“El residuo es:”<<D<<endl;

return 0;

}

ATOM
https://twitter.com/atomeditor

CC BY 4.0 Fun with numbers by Andrea Ac is licensed under a Creative Commons Attribution 4.0 International License.