Math, asked by pardeepantil2509, 7 months ago

check whether the first number is a factor of the second number or not. a)4;506​

Answers

Answered by mukeshgour2911
2

Answer:

no ,4 is not the factor of 506 because 506 is not divided by 4

Step-by-step explanation:

hope this is helpful for you

Answered by Brenquoler
8

import java. util.*;

class Hello

{

public static void main(string args[])

{

Scanner sc=new scanner (System. in);

int a, b, r;

System.out.println ("Enter 2 nos.");

a=sc. nextInt();

b=sc. nextInt();

r=a%b;

if (r==0)

System.out.println (b+"is a factor of"+a);

else

System.out.println (b+"is not a factor of"+a);

}

}

Similar questions