فایل متنی
فایل cpp
#include "stdafx.h"
#include "iostream"
using namespace std;
//alidoran
int main() {
int x, y , z=1;
cout << "please enter two
number"<<endl;
cin >> x >>y;
while (z > 0) {
z = x % y;
x = y;
y = z;
}
cout << "your answer is : " << x << endl;
system("pause");
return 0;
}