Skip to content

Instantly share code, notes, and snippets.

@btechmag
Created April 15, 2021 14:39
Show Gist options
  • Save btechmag/8602ad295d6a9bec343ad07c38780e26 to your computer and use it in GitHub Desktop.
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.
#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