Back
UCLN.cpp
Save
// UCLN.cpp #include
#include
using namespace std; void nhap(int &a, int &b) { do { cout<<"Nhap so nguyen duong a: "; cin>>a; cout<<"Nhap so nguyen duong b: "; cin>>b; if (a <= 0 || b <= 0) cout<<"Vui long nhap lai"<
0) { r = a % b; a = b; b = r; } return a; */ } int main() { int a, b; nhap(a, b); cout<<"Tim duoc UCLN cua "<