Card's Numbers War

Cemalettin Halil and Mazen Naji

CARD'S NUMBERS WAR

By Jamal Aldeen Khalil and Mazen Naji 

#include<iostream>

using namespace std;


int main()

{

     do{

    int x;

    int y;

    int z;

    string f;

    cin >> x;

    cin >> f;

    cin >> y;



    if (f == "+" )

    {

        z = x + y;

        cout << " z = " << z;

   }


    if (f == "-")

    {

        z = x - y;

        cout << " z = " << z;

    }


    if (f == "*")

    {

        z = x * y;

        cout << " z = " << z;


           }



    if (f == "/" && y < 1 && y > -1){


        cout << "it is not divisible by zero  " << endl;


}

   if  (f == "/" ) {

        z = x / y;

        cout << "z = " << z;


}

  if  (z == 0 ) {


       cout << " my calculator cannot   calculate this equation  " <<endl;


}

}

while(true);



     }