473,394 Members | 1,640 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Explanation and resources on loops

2
Could U Plz Xplain Me About Looping? Iam Just A Beginner & I Need A Clear Xplanation
Sep 14 '07 #1
3 1211
Savage
1,764 Expert 1GB
Could U Plz Xplain Me About Looping? Iam Just A Beginner & I Need A Clear Xplanation
Please try to write in a proper English.It's recomended that you read our posting guidelines,you can find them in Help link in upper right corner.

About your question,well loops enables you to do something again and again.

There are three kinds of loops:
1.for -> counter loop
2.while ->will loop while it's condition is nonzero(First check condition and then run)
3.do-while->same as while,except it must be executed at least once(First run then check condition)

Here is example of for loop:

int initialValue;
int endValue=5;

Expand|Select|Wrap|Line Numbers
  1. for(initialValue=1;initialValue<endValue;initialValue++)
  2. {
  3.       printf("Hello world\n");
  4. }
  5.  
This will print 4 times Hello world.

Savage
Sep 14 '07 #2
sicarie
4,677 Expert Mod 4TB
Another point on Savage's post is that this is a very fundamental concept to programming in general. This is not something that can really be absorbed by a single post, it's recommended that you do your own research for this - such as reading through several tutorials on Google, reading a book on programming, etc...

This, for example, is a good tutorial, and will cover it more comprehensively than we could in a thread (unless it was a thread as long as the article, but then we'd be repeating what's already out there).
Sep 14 '07 #3
JosAH
11,448 Expert 8TB
Could U Plz Xplain Me About Looping? Iam Just A Beginner & I Need A Clear Xplanation
You've got a funny keyboard driver. Read up on Turing Machines and you'll know
everything you were too afraid to ask.

kind regards,

Jos
Sep 14 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: velthuijsen | last post by:
I have a function that before I modified it took around 13.75 seconds to complete after the modification it took .325 seconds to complete. the function header: (Point **Input, size_t InputSize,...
70
by: rahul8143 | last post by:
hello, 1) First how following program get executed i mean how output is printed and also why following program gives different output in Turbo C++ compiler and Visual c++ 6 compiler? void main()...
2
by: Bob Hanson | last post by:
Hello All, I noticed in the ASP.NET beta 2 that we have more special folders. Can I get some clarification regarding these folders? I am just making sure of the intent. Thanks in advance, ...
2
by: Chris | last post by:
I have a procedure which runs a heavy SQL query, loops through a SQLreader and closes the reader and connection. Within the loop, there is a lot of code/processing that must remain. I'd like to...
3
by: raghu | last post by:
can any one help me explaining for loop and its execution and its syntax with a simple example.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.