#Quiz03

--Originally published at Diego Casillas Yamamoto TC1017

In my code I add a part for imaginary numbers, so if the user type a negative number the program ask the user if he wants to convert the negative number to a positive or continue with the negative number and if the user tells that he want the negative number then the program use the square root function the result is an imaginary number.

captura-de-pantalla-2017-01-27-a-las-11-04-49

 

https://www.dropbox.com/s/qtehyma8gf45ycj/quiz3.cpp?dl=0


#WSQ01

--Originally published at Diego Casillas Yamamoto TC1017

This is a C++ program that ask the user for two numbers and the program print the sum, difference, product, integer based division and the remainder of integer division of the two numbers.

This is my program:

#include <iostream>
using namespace std;

int main(){
int a,b;
cout<<“Enter Number 1: “;
cin>>a;
cout<<“Enter Number 2: “;
cin>>b;

cout<<“a + b = “<< a+b<<endl;
cout<<“a – b = “<< a-b<<endl;
cout<<“a * b = “<< a*b<<endl;
cout<<“a / b = “<< a/b<<endl;
cout<<“a % b = “<< a%b<<endl;

return 0;
}