#include <iostream>
#include <string>
using namespace std;
int main()
{
int number;
string words;
cout<<"Please, enter some integer number:";
cin>>number;
cout<<"Please, enter some word/s :";
cin.ignore(256,'\n');
getline(cin,words,'\n');
if(number%2==1)
{
cout<<words;
}
else if(number%2==0)
{
cout<<number<<" this is an even number";
}
}
Comments
Leave a comment