diff --git a/digits of an integer b/digits of an integer new file mode 100644 index 0000000..52f376f --- /dev/null +++ b/digits of an integer @@ -0,0 +1,15 @@ +import java.util.*; +public class digits +{ + public static void main() + { + Scanner sc= new Scanner(System.in); + System.out.println("Enter a number"); + int n=sc.nextInt(); + String s= String.valueOf(n); + for(int i=0;i