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
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 ");
}}
{
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
English,
7 months ago
Math,
7 months ago
English,
1 year ago
Math,
1 year ago
Social Sciences,
1 year ago