As we discussed in our last chapter
Loops, like if-else statements, can be nested, one within another.
While, the inner and outer loops need not be generated by the same type of control structure.
It is essential, that one loop be completely embedded within the other – there can be no overlap.
Therefore, Each loop must be controlled by different index.
Moreover, nested control structure can involve both loops and if-else statement.
Thus, a loop can be nested within an if-else statement, and an if-else statement can be nested within a loop.
Hence, the nested structure may be complex as necessary, as determined by the program logic.
#include <stdio.h>
void main() { int i,j; for (i=1; i<=10; i++) for(j=1; j<=10; j++) printf(“%d ”, i*j); Prints 1 2 3 ..10 2 4 6 ..20 ………10 20 30 ……..100 |
#include <stdio.h>
void main() { int i=1,j=1; while(i<=10) { while(j<=10) { printf(“ %d”, i*j); j++;} i++;} } |
Jumping Statements
Whereas jumping statements are also known as Loop Control Statements.
These statements are of different types
- break
- continue
- goto
- return, and
- exit ()
Programming With C : Lecture 1
Programming With C : Lecture 2
My spouse and I stumbled over here coming from a different page and thought
I may as well check things out. I like what I
see so i am just following you. Look forward to going over your web page repeatedly.
Thanks Jack
Hello there, just became aware of your blog through Google, and found that it’s truly informative.
I am going to watch out for brussels. I will be grateful if you continue this in future.
Lots of people will be benefited from your writing. Cheers!
I think this web site has got very fantastic indited written content articles .
Hello there,
My name is Aly and I would like to know if you would have any interest to have your website here at rozyph.com promoted as a resource on our blog alychidesign.com ?
We are in the midst of updating our broken link resources to include current and up to date resources for our readers. Our resource links are manually approved allowing us to mark a link as a do-follow link as well
.
If you may be interested please in being included as a resource on our blog, please let me know.
Thanks,
Aly
Nice article.
The next time I read a blog, Hopefully it doesn’t disappoint me just as much as this particular one. I mean, I know it was my choice to read, nonetheless I really thought you would probably have something interesting to say. All I hear is a bunch of crying about something you could possibly fix if you were not too busy searching for attention.
I’m extremely impressed along with your writing talents and also with the structure to your blog. Is that this a paid theme or did you modify it yourself? Anyway keep up the nice high quality writing, it is rare to look a great weblog like this one these days.
Well, this Thursday I read through a couple of your posts. I must say this is one of your better ones. .
This site was… how do you say it? Relevant!!
Finally I have found something which helped me.
Kudos! 0mniartist asmr
I like the helpful information you supply in your articles.
I’ll bookmark your blog and test once more here regularly.
I am reasonably certain I will be informed lots of new stuff right here!
Best of luck for the following! asmr 0mniartist