Computer Science, asked by abhi67094, 1 year ago

write a program to take input values of integer type and find if the first variable value is divisible but the second value than print the value of a is divisible by the value of b other wise nor divisible

Answers

Answered by ramadevi24
0
class demo
{
public static void main( String args [])
{
Scanner ob= new Scanner(System. in);
int a, b ;
a=ob.nextInt();
b=ob. nextInt();
if(a%b==0)
sopln("a is divisible by b ");
sopln("not divisible ");
}}
Similar questions