Computer Science, asked by rajak9330, 19 days ago

For the given N, X. You need to tell whether X is a factor of N.

Description
X is a factor of N if and only if X should divide N without leaving a remainder.

if X is a factor on N,
print "Yes".
otherwise, print "No".
C [program

Answers

Answered by Oakteer
2

Answer:

send a picture please then someone will solve

Answered by amvk2712005
0

Answer:

#include<stdio.h>

int main()

{

  int N,X;

  scanf("%d%d",&N,&X);

 

  if(N % X == 0){

      printf("Yes");

  }

  else{

      printf("No");

  }

   return 0;

}

Explanation:

Getting two numbers from the user as X and N and checking whether X factor N is zero or not by using modulo % and equal to checking operator == .Then printing Yes if the condition was satisfied.Otherwise it will print No.

Similar questions