Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~107 People Reached
Favorite Forums
Favorite Tags
java x 2
Member Avatar for rakesh07

[code]class count { public static void main(String args[]) { int a=0; int i; int l=0; int b=0; int c=0; for(i=1;i<=1000;i++) c=i/10; if(i%10==0) { l=l+1; } else if(c%10==0) { l=l+1; } System.out.println("no of zeros in this string is:"+l); }}[/code] this is my code...to calculate number of zero from 1 to 1000,,,,but …

Member Avatar for jon.kiparsky
0
107