Tag Archives: #FunWithNumbers

#WSQ08

In this WSQ we had to create and call functions; this is really useful because you can do an action doing different actions and writting the code in a different way.

In this link you can find my c++ code:

https://drive.google.com/file/d/0B-NM4ghaDXBvVVI2Nmw3bUNVb0U/view?usp=sharing

And here you can see two pictures about my code and the program running:

#WSQ03 Fun With Numbers

1 min read

//Mauricio Cooper A01630042

<iostream>

using namespace std;

int x,y,s,r,p,d,l;

int main () {

cout << “Dame los dos números para jugarn”;

cout << “Introduzca el primer númeron”;

cin >> x;

cout << “Introduzca el segundo númeron”;

cin >> y;

s=x+y ;

cout << “La suma de los dos números es: ” << s << endl;

r=x-y ;

cout << “La diferencia de los dos números es: ”  << r << endl;

p=x*y ;

cout << “El producto de los dos números es: ”  << p << endl; 

d=x/y ;

cout << “La división de los dos números es: ”  << d << endl;

l=x%y ;

cout << “El residuo de la división de los dos números es: ”  << l << endl;

return 0;

 

}

 

 

 #ninjabanana

Click here if you love the CoCo

Fun With Numbers

1 min read

#TC1017 #FunWithNumbers #PieceOfCake #WSQ03

Hey people, hereby you can see my second code in C++

It was easy, I just had trouble with the “remainder” because I didn’t knew 
which symbol use, but finally here is my code.
If you have troubles with this code send me a message!

Learning A Lot

1 min read

Teaching myself Python!! Very different than C++

#FunWithNumbers

WSQ03

1 min read

here is my code in c++ for #WSQ03 #TC1017 #funwithnumbers 

#include

using namespace std;

int main()

{

   int a, b, c;

   cout

   cin >> a >> b;

cin >> c2;

cin>> c3;

cin>> c4;

cin>> c5;

cin>> c6;

   c = a + b;

   c2= a – b;

   c3= a / b;

   c4= a * b;

   c5 =(int)a / b;

   int c6 = a % b;

   cout

   cout

   cout

   cout

   cout

   return 0;

}

here is my code in c++ for #WSQ03 #TC1017 #funwithnumbers #include using namespace std; int main() { int a, b, c; cout >

here is my code in c++ for #WSQ03 #TC1017 #funwithnumbers
#include

using namespace std;

int main()
{
int a, b, c;

cout > a >> b;

c = a + b;
c2= a – b;
c3= a / b;
c4= a * b;
c5 =(int)a / b;
int c6 = a % b;
cout

Learning A Lot

1 min read

After a hard days work i finished my 5th WSQ!!! I’ve already learned so much!!

#FunWithNumbers #WSQ03 #TC1017