Computer Science, asked by alakanandakt2002, 11 months ago

write a java program to input a number.Display the product of the successors of even digits of the number entered by user .input :2745 ,output:15​

Answers

Answered by kingcobra1
8

Answer:

public class success

{

public static void main(int a)

{

int i;int m=1;

for(i=a;i>=0;i=i/10)

{

int b=i%10;

if(b%2==0)

{

m=m*(b+1);

}

}

System.out.println(m);

}

}

Similar questions