Hi, this is my WSQ08, It was so easy because all that I had to do is make five easy functions. 😛 This program is like the WSQ03 the only difference is the function thing.

Screenshot from 2015-10-18 09:58:14

My code of this program:
#include <iostream>
using namespace std;

int suma(int x, int y){
return x+y;
}
int resta(int x,int y){
return x-y;
}
int producto(int x,int y){
return x*y;
}
int division(int x,int y){
return x/y;
}
int residuo(int x, int y){
return x%y;
}
int main(){
int x,y;
cout<< “Teclea dos números “<< endl;
cin>> x;
cin>> y;
cout<<“La suma es “<< suma(x,y)<< endl;
cout<< “La resta es “<< resta(x,y)<< endl;
cout<< “El producto es “<<producto(x,y)<< endl;
cout<< “La división es “<<division(x,y)<< endl;
cout<< “El residuo de la división es “<<residuo(x,y)<< endl;
return 0;
}

CC BY 4.0 WSQ08 by chrisorozco97 is licensed under a Creative Commons Attribution 4.0 International License.