for loop in cpp in hindi

Loop In Hindi – For Loop In C++ In Hindi

C++

For Loop In C++ Hindi :- C ++ Language Me Aapko Loops Provide Kiye Gye Hai | C++ Loops Ki Help Se Aap Ek Hi Statement ko Bar Bar Excute Karva Sakte Hai |

For Loop In C++ In Hindi

Jab Tak Kisi condition Ka Satisfaction Nhi Hota Hai Tab Tak Loop Ka statement repeat Hota Rahta Hai |

C++ Loops 4 Parkar Ke Hote Hai |

  1. While loop
  2. Do-while loop
  3. For loop
  4. Nested loop

Friends Agar Me Aapse Kahu Ki MasterPrograming ko 10 bar Print Karana Hai to Aap Kiya Karenge | Mere Hisab Se Aap For Loop in Hindi Ka Hi Istemal Karenge Kyoki Aap Bar Bar cout se Print Nhi Kara Sakte Hai | Lyoki Ye acche Programmer ki Pahchan Nhi Hoti Hai |

For Loop In C++ Hindi

  • For Loop Ko Sirf Variable Declaration Ki Jarurat Hoti Hai | Ye Satement Chodke Sabhi Kaam Aapne Under Hi Karta Hai |

Syntax :

for(initialvariable;condition;increment)
{
       //statements
} 

Example :-

#include<iostream>
using namespace std;
int main()
{
    char name;
    cout<<"Enter The Name :";
    cin>>name;
  
        for(name=1;name<=10;name++)
        {
             cout<<name<<endl;
        }
}

Output :-

Upper Likha Gya Code Ye Output Deta hai |

Enter The Name : Masterprograming
Masterprograming
Masterprograming
Masterprograming
Masterprograming
Masterprograming
Masterprograming
Masterprograming
Masterprograming
Masterprograming
Masterprograming

Example 2 : –

#include<iostream>
using namespace std;
int main()
{
	int number;
	for(number=1;number<=10;number++)
	{
		cout<<number;
	}
	return 0;
}

Output :-

1 2 3 4 5 6 7 8 9 10

Aap Dekh Sakte Hai ye for loop kese kaam karta hai.

For loop statement in Cpp in hindi

Read Also This Post :

Dosto mujhe ummed hai ki aap C++ For Loop in Hindi ko acchi tarah se samanj gye honge agar aap ko ye post acchi lage to mere is website ko jarur follow kre or ha agar aap video bhi dekhna chahte hai to aap mere channel ko bhi subscribe kar sakte hai. channel ka link aapko home page par mil jayega |

Leave a Reply

Your email address will not be published. Required fields are marked *