We’re now going to have lots of fun with numbers! This is the preamble for functions, so it is a very important task to know what we’re doing here for future works. The code is shown here below, where we defining the variables before the main function, while making the calculations in the main function. … Continue reading WSQ03 →
We’re now going to have lots of fun with numbers! This is the preamble for functions, so it is a very important task to know what we’re doing here for future works. The code is shown here below, where we defining the variables before the main function, while making the calculations in the main function. … Continue reading WSQ03 →
We’re now going to have lots of fun with numbers! This is the preamble for functions, so it is a very important task to know what we’re doing here for future works. The code is shown here below, where we defining the variables before the main function, while making the calculations in the main function. … Continue reading WSQ03 →
Para hacer este código me apoyé en el libro y aparte me explicaron algunos amigos las dudas que tuve, sobre todo con la sintaxis. Mi código es este: // WSQ03 Basic math #include <iostream> using namespace std; int main() { int x; int y; cout <<“Dame el primer número ” <<endl; cin >>(x); cout <<“Dame […]
This is the code for a program that gives you the sum, substraction, mutiplication and division of to number given by the user.This is the code of the program:And this is how it looks ike when you run it:
Basically what I did was to give to integers and then give them a value which will interact with the other. #include <iostream> using namespace std; int main (){ int x; int y; cout << “Introduce un numeron”; cin >> x; cout << “Introduce otro numeron”; cin >> y; cout << “El resultado de la […]
#include <iostream> using namespace std; int main() { int a,b,c,d,f,g; cout << “Dime número A” << endl; cin >> a; cout << “Dime número B” << endl; cin >> b; c = a + b; d = a * b; f = a/b; g = a%b; cout << “El resultado son los siguientes” << endl…
Here I am going to show you how I done the WSQ03. It is call “Fun with numbers”, and it is about making simple functions. I know, best day ever. So here I’ll put an image about my program, and the I explain it: Gaze at the program, try to understand it and then read […]
This program is pretty simple. It asks the user to give it two integers and returns the multiplication, sum, subtraction, and integer division of the two integers.
https://github.com/estebanpinal/WSQ/blob/master/WSQ03