While And Do While In Cpp in Hindi

While and Do-While in C++ | Difference Between While And Do While Hindi

C++

While and Do-While in CPP :- While Loop Ek Single Loop Hoti Hai | Jab Condition True Hoti Hai Tab Hi Statement Execute Hote Hai |

Do While Me Pahle Program Execute Hota Hai or Bad Me Condition Check Hoti Hai Lekin Do while statement ek Bar Hi Execute Hoti Hai |

While and Do-While in C++ in Hindi

While And Do While Loop In C++ Ko Ham Ab Ek A to Z Cover Karne Wale Hai Or Ham While And Do While Loop In Cpp Hindi Ka Program Alag Alag Banane Wale Hai |

Flow Chart While And Do-While

difference between while and do while in Hindi
While and Do-While in c++ in hindi

While Loop in C++ Hindi

Syntax While Loop :-

initial variable declaration;

while(condition)
{
            //statements 
           //increment
} 

Example :-

#include <iostream>
using namespace std;

int main()
{
	int number=1;	
	while(number<=10)	 //while loop with condition
	{
		cout<<number;
		number++;		// incrementing operation
        cout<<endl;
	}
	return 0;
}

Output :-

1
2
3
4
5
6
7
8
9
10

Aap Dekh Sakte Hai While Loop ko aap kese istemal kar sakte hai | Aap Program Ko Bhi Understand Kar Sakte Hai |

Do-While Loop In c++ In Hindi

Aap Dekh Sakte Hai Hamne Do While Loop Ka Syntax Or Program Ka Example Niche De Rha Kha Hai |

Syntax Do-While Loop

do {
  statements
} while (expression);

Example :-

#include<iostream>
using namespace std;
int main()
{
	int num=1;	//initializing the variable
	
	do	  //do-while loop 
	{
	    cout<<num;
	    cout<<endl;
    	num++;		//incrementing operation
	}while(num<=10);
	
return 0;
}

Output :-

1
2
3
4
5
6
7
8
9
10

Difference Between While And Do While In Hindi

Read Also This Post :-

Dosto mujhe ummed hai ki aap Difference Between While And Do While 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 *