Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Lucas Hernán Tarche, 4to 4ta Turno Tarde, ESCCP
- #include <iostream>
- using namespace std;
- bool esDivisor(int a, int b){
- return (a % b == 0);
- }
- int main(){
- int a, b;
- cin >> a >> b;
- if (b == 0) {
- cout << "b no puede ser cero";
- return 1;
- }
- cout << a;
- (esDivisor) ? cout << " divide a " : cout << " no divide a ";
- cout << b << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement