If the numbers 1 to 5 are written out in words: one, two, three, four, five, then there are 3 + 3 + 5 + 4 + 4 = 19 letters used in total.

If all the numbers from 1 to 1000 (one thousand) inclusive were written out in words, how many letters would be used?

my solution is working fine

as am beginner to the programming, i wrote code as much as i know java, help me to find error and bugs in this program and how can i improve myself. how to write this program in efficient way.

Thank you in advance........

solution

public class problem17 Code removed per Euler Project policy

This post has been edited by **jon.kiparsky**: 05 June 2014 - 10:44 AM

Reason for edit:: Removed solution for Project Euler problem