Skip to main content

Posts

Showing posts with the label Java BigDecimal Hackerrank Solution

Java BigDecimal Hackerrank Solution

 Java BigDecimal Hackerrank Solution For Explanation Watch Video: Sample Input 9 -100 50 0 56.6 90 0.12 .12 02.34 000.000 Sample Output 90 56.6 50 02.34 0.12 .12 0 000.000 -100 Code: import  java.math.BigDecimal; import  java.util.*; class  Solution{      public   static   void  main(String []args){          //Input         Scanner sc=  new  Scanner(System.in);          int  n=sc.nextInt();         String []s= new  String[n+ 2 ];          for ( int  i= 0 ;i<n;i++){             s[i]=sc.next();         }         sc.close();      ...