ANSWERS: 1
  • // // The number for testing is in the variable n // int i; for (i=1 ; i<=n ; i++) { // The mod operation returns the remainder of the division of two numbers. // If the remainder is zero, then it is divisible by that number. if (n%i == 0) { printf("Divisible by: %d", i); } }

Copyright 2020, Wired Ivy, LLC

Answerbag | Terms of Service | Privacy Policy