TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
regor
NA
61
0
for loop integer starting 0000 and selecting from 9999 downwards?
Sep 1 2009 10:49 AM
Hi,
I am of some expericen with c# but right now I have a project in which I have a string that can start from 0000 and end in 9999 (the string is parsed into a integer).
I want to create a loop which can basically say it starts from 2545 and then go down to 0000 or do it the way round which is start from 0000 and go up to 2545.
Problem starts when I say:
for
(
int
i = 0000; i < myLength; i++)
{
function;
response;
}
but in c# I realize it wont like starting from 0000 and instead it starts from 0. how can I make it iterate so it can do 4 digits?
Regards,
Reply
Answers (
3
)
mouse scroll
How to retrieve data to checkbox