Docstoc

10

Document Sample
10 Powered By Docstoc
					#include<iostream.h> #include<conio.h> #include<fstream.h> int a,b; void main() { clrscr(); fstream f ("numere.in",ios::in|ios::out); f>>a; f>>b; while(a!=b) {if(a>b) a=a-b; else if (a<b) b=b-a; } if(a==b) f<<endl<<a; getch(); }

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