#include // This allows us to print to the command line #include // Provides basic math operator func int main() // This is the main function. It's the entry point to the program { float var1; // Define our variables float var2; float var3; float var4; std::cout << "Enter frist value: " << std::endl; // Prompt the user for info std::cin >> var1; // Read in the user specified value and store it in var1 std::cout << "Enter second value: " << std::endl; std::cin >> var2; std::cout << "Enter third value: " << std::endl; std::cin >> var3; std::cout << "Enter fourth value: " << std::endl; std::cin >> var4; float mult = var1*var2; // Mult the first two values float sum = var3 + var4; // Add the last two float answer = mult / sum; // Calculate the answer // Print it out to the user formatted nicely std::cout << "(" << var1 << " * " << var2 << ")" << " / " << "(" << var3 << " + " << var4 << ")" << " = " << answer << std::endl; return 0; }