Nested Loop in C++, Number Pattern & Star Pattern
Nested Loop
जब किसी looping statement के अंदर अन्य loop statement define किया जाता है, ऐसे Looping statement को Nested Loop कहा जाता है |
Syntax:
for(... ; ... ; ...)
{
for(... ; ... ; ...)
{
............... ;
............... ;
}
}
* Program to print following series -
3 6 9 2 4 6 12 15 18 8 10 12 . . . . .
* Program to print following Number Pattern -
23
456
78910
* Program to print following Number Pattern -
* Program to print following Number Pattern -
* Program to print following Number Pattern -
टिप्पणियाँ
एक टिप्पणी भेजें