

Hãy luôn nhớ cảm ơn và vote 5*
nếu câu trả lời hữu ích nhé!
#include <bits/stdc++.h>
#define ll long long
using namespace std;
ll a, b, c;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cin >> a >> b >> c;
cout << __gcd(a, __gcd(b, c));
return 0;
}
Hãy giúp mọi người biết câu trả lời này thế nào?

#include <bits/stdc++.h>
using namespace std;
int uc(int a, int b) {
while (a!=b) if (a>b) a-=b; else b-=a;
return a;
}
int main() {
int a,b,c;
cout << "Nhap vao 3 so: "; cin >> a >> b >> c;
cout << "UCLN cua 3 so: " << uc(uc(a,b),c);
}
Hãy giúp mọi người biết câu trả lời này thế nào?
Bảng tin
47
1908
25
cả bài này nữa bạn
211
2180
224
#include <bits/stdc++.h> #define ll long long using namespace std; ll a, b, c; ll kq(ll a,ll b,ll c) { return __gcd(a, __gcd(b, c)); } int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); cin >> a >> b >> c; cout << kq(a,b,c); return 0; } Rút gọn#include <bits/stdc++.h> #define ll long long using namespace std; ll a, b, c; ll kq(ll a,ll b,ll c) { return __gcd(a, __gcd(b, c)); } int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); cin >> a >> b >> c; cout << kq... xem thêm