Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Digits Of A Number

Easy


  1. You've to display the digits of a number.
  2. Take as input "n", the number for which digits have to be displayed.
  3. Print the digits of the number line-wise.

Example 1:

Input:  65784383
Output: 
6
5
7
8
4
3
8
3

Example 2 (Special Case):

Input:  1554538760
Output: 
1
5
5
4
5
3
8
7
6
0

Constraints:

1 <= n < 10^9