Computer Science, asked by 4427, 8 months ago

Write a Java program to input three digit numbers and print all the digits on the new line.
Input: 354
Output: 3
5
4​

Answers

Answered by Vyomsingh
5

Answer:

SEE MY POST BELOW AND PLS MARK ME AS BRAINLIST

Attachments:
Answered by anindyaadhikari13
34

Here is your answer.

It works for any digit number.

class x

{

static void main(int n)

{

while(n! =0)

{

int d=n%10;

System.out.print(d);

n/=10;

}

}

}

Similar questions