PROGRAM
#include <stdio.h>
#include <stdlib.h>
int main()
{
int n1,n2;
printf("Enter two numbers");
scanf("%d%d",&n1,&n2);
if(n1%n2==0)
printf("second number is factor of first number");
else
printf("second number is not factor of first number");
return 0;
}
OUTPUT
Enter two numbers 12 6
second number is factor of first number
No comments:
Post a Comment