Computer Science, asked by Annnnnnnnnnnnnnn, 11 months ago

I need the solution of the given program

Attachments:

Answers

Answered by Anonymous
1

import java.util.*;

public class Number

{

public static void main(String args[])

{

Scanner in= new Scanner(System.in);

int a,b,c,d;

System.out.println("Enter the first digit of the number");

a=in.nextInt();

System.out.println("Enter the second digit of the number");

b=in.nextInt();

c=(a*10)+b;

d=(a+b)+(a*b);

if(c=d)

{

System.out.println("The special number is"+c);

}

else

{

System.out.println("Its a wrong choice");

}

System.out.println("A special two-digit number is such that when the sum of its digits is added to the product of its digit, the result is equal to the original two digit number.");

}

}

Explanation:

For more java programming, solved by me referred to the following link:

brainly.in/question/14335606

brainly.in/question/14323927

brainly.in/question/14370842

brainly.in/question/14395545

https://brainly.in/question/14809885#

#answerwithquality

#BAL

Similar questions