Last active
April 4, 2019 19:09
-
-
Save anonur/67af8e5b2eb7c678c0ff6a3b3d7c7de8 to your computer and use it in GitHub Desktop.
Decides if the first integer is a multiple of the second
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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