////////////////////////////////////////
// The main() function.
////////////////////////////////////////
int main()
{
    // Declare three integers.
    int HourlyRate;
    int HoursWorked;
    int GrossPay;

    // Assign values to the integers.
    HourlyRate = 15;
    HoursWorked = 40;
    GrossPay = HourlyRate * HoursWorked;

    // Display the variables on the screen.
    std::cout << HourlyRate;
    std::cout << ' ';
    std::cout << HoursWorked;
    std::cout << ' ';
    std::cout << GrossPay;

    return 0;
}


Like it on Facebook, Tweet it or share this article on other bookmarking websites.

No comments