Docstoc

06

Document Sample
06 Powered By Docstoc
					#include<fstream.h> #include<conio.h> int main(){ ifstream f(“NUMERE.IN”); if(!f)cout<<”error”; getch(); int x,x_inv,uc; ofstreamg(“INVERS.OUT”); while(!f.eof()){f>>x; if(!f.eof()){xx=x;x-inv=0; while(xx){uc=xx%10; xx=xx/10; x_inv=x_inv*10+uc;} g<<x<<” “<<x_inv<<endl;}} f.close(); g.close(); cout<<endl<<”GATA”; getch();}

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