Today I did a little program where you gave two numbers to it and yo got the sum, rest, product, division an remain.

It was easy once I understood the structure of it, getting help in https://github.com/MiguelAngelCardenas/WSQ03/blob/master/NUMBERS.cpp

Here is my code:

using namespace std;

 

int main() {

 

int num1, num2, sum, rest, prod, D, resid;

 

cout

cin >>num1;

cout

cin>> num2;

 

sum = num1 + num2;

cout

cout

 

rest = num1 – num2;

cout

cout

 

D = num1/num2;

cout

cout

 

resid = num1 % num2;

cout

cout

return 0;

 

}

CC BY 4.0 Fun With Numbers! by Ruth Vanessa Baeza Elizalde is licensed under a Creative Commons Attribution 4.0 International License.