#include /**************************************************************** * Query the user for two integers. Print all integers * from the first integer up to and including the second. * If the second integer is less than the first, print nothing. ****************************************************************/ // Function declarations int main(); // Function definitions int main() { int m{}; std::cout << "Enter a first integer: "; std::cin >> m; int n{}; std::cout << "Enter a second integer: "; std::cin >> n; for ( ; ; ) { std::cout << 0 << " "; } std::cout << std::endl; return 0; } // Hint: Initialize your loop variable 'int k' // with the first integer. The condition should // remain true while 'k' is less than or equal // to the second integer. Increment 'k' by one // after each iteration. /* This is the most straightforward solution: int main() { int m{}; std::cout << "Enter a first integer: "; std::cin >> m; int n{}; std::cout << "Enter a second integer: "; std::cin >> n; for ( int k{ m }; k <= n; ++k ) { std::cout << k << " "; } std::cout << std::endl; return 0; } */