write a program in java without scanner to input a number and display the sum of its digits and the number of its digits using while loop
Answers
Answered by
1
Answer:
Firstly we know that we are beginners in java therefore my answer can be wrong but it's not my fault
Explanation:
Class cl1
{
Public static void p1 (int a,int b)
{
int a=5,int b= 9;
int c= a+b;
System.out.println(a);
System.out.println(b);
System.out.println("c="+c);
}
}
System.out.println(int c =+c);
Similar questions