#include < fstream . h >
#include < iostream . h >
int main ( )
{int i , n ,x ;
ifstream e ( " exercitiu . txt");
ofstream s ( " pare . txt " ) ;
e > > n;
for ( i = 1 ; i < = n ;i++)
{e > >x;
if (x%2==0)
s < < x < <" ";
}
e.close();
s.close();
return 0;
}

Niciun comentariu:
Trimiteți un comentariu