#WSQ03 -Fun with numbers

numbersIn this assignment we had to create a programm that gave you the result of a sum, difference, product, and division from 2 numbers that you typed.

So first I wrote the usual stuff of

#include <iostream>

using namespace std;

Then I asked my friend Miguel how to put the values that you type into the “x” & “y”. He told me that we need to use cin >> so the programm knows that you will give the value of that integer.
After that, I was all like pure algebra.

Captura de pantalla 2016-02-15 a las 17.44.41At the end, do not forget to write return 0, because we are using an int main function, so it need to be return 0, at the end.

Here’s also the link to my GitHub.

https://github.com/antonioangelm24/TC101/blob/master/WSQ03.cpp

 


Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Salir /  Cambiar )

Google photo

Estás comentando usando tu cuenta de Google. Salir /  Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Salir /  Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Salir /  Cambiar )

Conectando a %s