Created
April 15, 2021 14:39
-
-
Save btechmag/8602ad295d6a9bec343ad07c38780e26 to your computer and use it in GitHub Desktop.
C Program to read two integers and checks whether they can be multiplied or not.
This file contains 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 a, b; | |
printf("The values of a and b are:"); | |
scanf("%d %d", &a, &b); | |
if(a % b == 0) | |
{ | |
printf("Multiplied"); | |
} | |
else | |
{ | |
printf("Not multiplied"); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment