Odpowiedź :
Odpowiedź:
#include <iostream>
using namespace std;
bool modulo(int a, int b) { return b == 0 ? false : a % b == 0 ? true : false; }
int main() {
int a, b;
cout << "Podaj a: ";
cin >> a;
cout << "Podaj b: ";
cin >> b;
if (modulo(a, b)) {
cout << "Podzielna" << endl;
} else {
cout << "Nie podzielna" << endl;
}
return 0;
}