Đăng nhập để hỏi chi tiết


Hãy luôn nhớ cảm ơn và vote 5*
nếu câu trả lời hữu ích nhé!
code:
#include <iostream>
using namespace std;
int main() {
int a,b;
cout << "Please enter the 1st number: "; cin >> a;
cout << "Please enter the 2nd number: "; cin >> b;
if (a%b==0) {
cout << "The 2nd number is a divisor of the 1st number";
} else {
if (b%a==0) cout << "The 1st number is a divisor of the 2nd number";
}
}
Hãy giúp mọi người biết câu trả lời này thế nào?
Bảng tin