#include <iostream>
using namespace std;
int main(int argc, char** argv)
{
int numbers[10];
cout << "Input 10 integer values:" << endl;
for(int i = 0; i < 10; i++)
{
cin >> *(numbers + i);
}
cout << "Odd input values:" << endl;
for(int i = 0; i < 10; i++)
{
if(*(numbers + i) & 1)
{
cout << *(numbers + i) << " ";
}
}
cout << endl;
return 0;
}
Comments
Leave a comment