1. Write a program to input a 2-digit number and print
the sum and product of the digits. in java
Answers
Answered by
1
Answer:
int digitSum = digit1 + digit2; int digitProduct = digit1 * digit2; if ((digitSum + digitProduct) == orgNum) System. out. println("Special 2-digit number"); else System.
Similar questions