Docstoc

34

Document Sample
34 Powered By Docstoc
					#include<iostream.h> #include<conio.h> #include<fstream.h> void main() { clrscr(); int n,i,a[10],max; fstream f("numere10.in", ios::in); f>>n; fstream g("numere7.out", ios::out); fstream h("numere8.out", ios::out); for(i=1;i<=n;i++) f>>a[i]; for(i=1;i<=n;i++) cout<<a[i]; for(i=1;i<=n;i++) {if(a[i]%2==0) g<<a[i]; else h<<a[i];} getch(); }


				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:13
posted:10/30/2008
language:
pages:1