package com.example.www;
/*\* 9+99+99+......+9999999
*/
public class Sum {
public static void main(String[] args) {
long temp = 0l ,sum = 0l ;
for (int i = 0 ;i<10 ;i++){
temp += Math.pow(10,i)*9 ;
sum += temp ;
}
System.out.println(sum);
}
}
package com.example.www;
/*\