| 
 hey i tried make it the way i coud read it so far no errors but when i try to execute it doesnt do anything
 
 #include <stdio.h>
 #include <iostream>
 int main ()
 {
 float numberone;
 float numbertwo;
 char action;
 int x=0; // loop
 float result=0;
 while (x==0){
 std::cout << "Enter 1st First Number ";
 cin >> numberone;
 std::cout << "\nEnter +,-,* or / :        ";
 cin >> action;
 std::cout << "\n Enter Second Number   ";
 cin >> numbertwo;
 switch (action)
 {
 case '+':
 result=numberone+numbertwo;
 break;
 case '-':
 result=numberone-numbertwo;
 break;
 case '*':
 result=numberone*numbertwo;
 break;
 case '/':
 result=numberone/numbertwo;
 break;
 default:
 std::cout << "invalid operator\n"; // non-valid character.
 x=1;
 }
 std::cout << "                          --------\n";
 std::cout << "                          %f\n\n",result; //  prints the result
 int b;
 std::cin >> b;
 return 0;
 }
 }
 |