Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main() {
- int n, b;
- printf("Introduce un número entero: ");
- scanf("%d", &n);
- printf("Introduce otro número entero: ");
- scanf("%d", &b);
- if(n % b == 0){
- printf("%d es divisible por %d", n, b);
- } else{
- printf("%d no es divisible por %d", n, b);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment