// main.cpp // Author: Dr. Crainiceanu // Description: Introduce C++ programming and variables /* Compute (3.55-17.017)^3 */ #include #include using namespace std; int main() //entry point in the program { //all code between {} //declare variables double difference; //initialize variables //difference = 3.55-17.017; //read value from user cout << "Enter number "; cin >> difference; //output result cout << "The number to 3rd power is " << difference*difference*difference << endl; //; required after every statement except include string s1 = "Beat"; string s2 = " Army"; s1 = "Beat" + " Army"; cout << s1; return 0; //end of program }