seergiomv

ejercicio 3.2

Oct 4th, 2019
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.     int n, b;
  5.     printf("Introduce un número entero: ");
  6.     scanf("%d", &n);
  7.     printf("Introduce otro número entero: ");
  8.     scanf("%d", &b);
  9.     if(n % b == 0){
  10.         printf("%d es divisible por %d", n, b);
  11.     } else{
  12.         printf("%d no es divisible por %d", n, b);
  13.     }
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment