Write a C ++ program in which you declare a variable that holds an hourly wage
include <iostream>
int main()
{
// Example of declaration of initialization and input / output of a variable hourly_wage
double hourly_wage = 2.5;
std::cout << "Hourly wage = " << hourly_wage << std::endl;
std::cout << "Enrer new value hourly wage: ";
std::cin >> hourly_wage;
std::cout << "Hourly wage = " << hourly_wage << std::endl;
return 0;
}
Comments
Leave a comment