From 116e5cb5b5aad579b5334f223c8c9b3c03e685e4 Mon Sep 17 00:00:00 2001 From: Raj Tiwari <64024281+Wizonaldo@users.noreply.github.com> Date: Sun, 10 Oct 2021 17:09:50 +0530 Subject: [PATCH] Create Reverse-java-solution --- Reverse-java-solution | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Reverse-java-solution diff --git a/Reverse-java-solution b/Reverse-java-solution new file mode 100644 index 0000000..7a61807 --- /dev/null +++ b/Reverse-java-solution @@ -0,0 +1,27 @@ +{ + scanf("%d", &a[i]); + } + //sort the elements + for(i=0;i s=new Stack(); + int digit,count=0; + //Add to stack + while(n!=0) + { + digit=n%10;