#include <iostream>
int main()
{
int k ;
std::cout << "enter an integer: " ;
if( std::cin >> k )
{
std::cout << "successful input. the value of k is " << k << '\n' ;
if( k == 0 ) std::cout << "(the user entered zero)\n" ;
}
else
{
std::cout << "input failure. the user did not enter an integer\n" ;
}
}