Skip to content

Instantly share code, notes, and snippets.

@anonur
Last active April 4, 2019 19:09
Show Gist options
  • Save anonur/67af8e5b2eb7c678c0ff6a3b3d7c7de8 to your computer and use it in GitHub Desktop.
Save anonur/67af8e5b2eb7c678c0ff6a3b3d7c7de8 to your computer and use it in GitHub Desktop.
Decides if the first integer is a multiple of the second
#include<stdio.h>
int main()
{
int x,y;
printf("Enter two integers: ");
scanf("%d %d",&x,&y);
if(x % y == 0) {
printf("First integer is a multiple of the second.\n");
}
else
printf("It is not a multiple of the second.\n");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment