Created
October 9, 2011 16:05
-
-
Save pr4v33n/1273844 to your computer and use it in GitHub Desktop.
isMultiple
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool isMultiple(int a, int b) { | |
return !(b%a); | |
} | |
bool isMultiple(int a, int b) { | |
return (b%a == 0); | |
} | |
bool isMultiple(int a, int b) { | |
return (b%a)?false:true; | |
} | |
bool isMultiple(int a, int b) { | |
if(b%a == 0) { | |
return True; | |
}else{ | |
return False; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment