I have to create a program that takes 2 numbers. If the first number is equally divisible by the second number, then print the number of times it's divisible, otherwise, print a message saying "not divisible". I have no clue how to write an if statement to find out if the first number is equally divisible by the second number.
My code is below - please explain.
Code:#include <stdio.h> int main() { int x, y, z; printf("Enter in 2 numbers: \n"); scanf("%d%d", &x, &y); if {x % y ==z} { printf("%d\n", z); } else { printf("not divisible\n"); } } return 0; }