#TC1017 #WSQ08 #FunWithNumbers #Functions
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:/
And here you can see two pictures about my code and the program running:
1 min read
//Mauricio Cooper A01630042
#include <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;
}
#WSQ03 #TC1017 #Dontcopymycode #FunWithNumbers #ninjabanana
]]>1 min read
#TC1017 #FunWithNumbers #PieceOfCake #WSQ03
Hey people, hereby you can see my second code in C++
1 min read
#TC1017 #FunWithNumbers #PieceOfCake #WSQ03
Hey people, hereby you can see my second code in C++
1 min read
Teaching myself Python!! Very different than C++
1 min read
here is my code in c++ for #WSQ03 #TC1017 #funwithnumbers
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;
}
Continue reading ]]>1 min read
here is my code in c++ for #WSQ03 #TC1017 #funwithnumbers
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 > a >> b;
c = a + b;
c2= a - b;
c3= a / b;
c4= a * b;
c5 =(int)a / b;
int c6 = a % b;
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
1 min read
After a hard days work i finished my 5th WSQ!!! I’ve already learned so much!!