10

Document Sample
10 Powered By Docstoc
					#include<conio.h> #include<fstream.h> int main(){ifstream f(“NUMERE.IN”); if(!f) cout<<”error”; getch(); return 1;} int a,b; f>>a>>b; while(a!=b){if(a>b)a=a-b; else b=b-a; while(!f.eof()) f>>b; if(!f.eof()) while(a!=b) if(a>b)a=a-b; else b=b-a;} f.close(); fstreamf(“NUMERE.IN”,ios::app); f<<endl<<”cmmdc=”<<a; f.close(); cout<<”the end”; getch();}

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