Docstoc

34-Numere pare .Numere impare

Document Sample
34-Numere pare .Numere impare 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:892
posted:10/28/2008
language:Romanian
pages:1
Buturca Diana-Alexandra Buturca Diana-Alexandra
About I'm only happy when it rains !