Docstoc

06

Document Sample
06 Powered By Docstoc
					#include<iostream.h> #include<conio.h> #include<fstream.h> void main() { clrscr(); int n,i,a[10],ninv,p; fstream f("numere2.in",ios::in); fstream g("numere3.out",ios::out); f>>n; cout<<"n="<<n; for(i=1;i<=n;i++) f>>a[i]; for(i=1;i<=n;i++) { ninv=0; p=a[i]; while(p>0) {ninv=ninv*10+p%10; p=p/10;} g<<ninv; } getch(); }


				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:22
posted:12/9/2008
language:
pages:1