#include<iostream>
using namespace std;
int main(){
cout<<"Enter integer number: \n";
int n;
cin>>n;
cout<<"Enter a string: \n ";
cin.ignore(80,'\n');
string word;
getline(cin, word);
if(n%2 !=0 ){
cout<<word<<endl;
}
else{
cout<<"this is an even number "<<endl;
}
}
Comments
Leave a comment