Loop In C In Hindi

Loop In C Language In Hindi – For While And Do-While in Hindi

C

Loop In C Language In HindiFor, While And Do-While in Hindi – Is Article Me A to Z C Loops Ko Cover Karne Wale Hai Or Dekhne Wale Hai, Ki While Loop And Do While Me Kiya Difference Hota Hai Or While Loop Or For Loop Me Kiya Difference Hota Hai |

Yadi Aapne  HTML Full Course  And CSS Full Course And Python Full Course And PHP Full Course Nhi Read Kiya Hai To Aap Vah Bhi Read Kar Sakte Hai |

Loop In C Language In Hindi

Yadi Me aapse kahu ki c programming ko 10 bar print karana hai to aap kiya karenge | Mere Hisab Se Aap loops ka hi istemal karenge kyoki aap bar bar printf() Function se print nhi kara sakte h kyoki ye acche programmer ki pahchan nhi hoti.

For Loop In C Language In Hindi

For Loop Ka Istemal Sabse Jyada Hota Hai Or For Loop Ko Ham Isiliye Istemal Karte Hai, Taki Ham Array Ya Fir Or Data Types Ke Data Ko Le Sake Ya Fir Print kara Sake, To Chaliye Iske Syntax Or Example Ko Dekhte Hai |

Syntax :

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

Example :-

#include<stdio.h>
void main()
{
    char name;
    printf("Enter The Name :");
    scanf("%s",&name);
  
        for(name=1;name<=10;name++)
        {
              printf("%s\n",name);
        }
}

Hamne Isme Ek Name Ko Input Me Liya Hai Or Fir Hamne For Loop Ki Help Se 10 Print Karane Ke Liye Kaha Hai |

Output :-

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

Example 2 :

#include<stdio.h>
int main()
{
	int number;
	for(number=1;number<=10;number++)
	{
		printf("%d",number);
	}
	return 0;
}

Is Program Me Hamne 1 Se Lekar 10 Print Karane Ke Liye Kaha Hai |

Output:

1 2 3 4 5 6 7 8 9 10

Mujhe Umeed Hai, Ki Aapko C For Loop In Hindi Ke Bare Me Acchi Jankari Ho Gayi Hogi, Ab Ham While Or Do-While In C In Hindi Ko Dekhte Hai |

While Loop In C Language In Hindi

While Loop In Hindi Har Programming Language Me Istemal ki Jati Hai, Lekin Aaj Ham C Language While Loop In Hindi Ko Understand Karne Wale Hai Or Dekhne Wale Hai, Ki While Loop Ko Kyo Istemal Karte Hai |

Learn – HTML Tutorial In Hindi Or CSS Tutorial In Hindi

C Language While Loop In Hindi:- While Loop Ek single loop hoti hai. jab condition True hoti hai tab hi Statement execute hoti hai.

Aap Niche While Loop Ka Flow Chart Bhi Dekh Sakte Hai, Ki While Loop Kaise Kaam Karti hai |

Isme Ham While Loop In C In Hindi Ke Program Bana Ke Dekhte Hai, To Chahilye C While Loop In Hindi Ko Dekhte Hai

Syntax While Loop :-

initial variable declaration;

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

Example :-

#include<stdio.h>
#include<conio.h>

int main()
{
	int number=1;	
	while(number<=10)	//while loop with condition
	{
		printf("%d\n",number);
		number++;		// incrementing operation
	}
	return 0;
}

Aap Program Ko Dekh Sakte Hai, Isme Hamne number ko variable Banaya Hai Or Us Number Ki Value 1 Di Hai Or Fir Use while Loop Ki Help Se Kaha Ki Number 10 Tak Yani Ke 1 se Lekar 10 Tak Jaye Or Fir While Loop me printf() Se Number Kar DIya Hai Or Uske Bad number Ki Value Increment Kar Di hai |

Output:

1
2
3
4
5
6
7
8
9
10

Aap Dekh Sakte Hai While Loop ko Aap kese istemal kar sakte hai.

Do While Loop In C Language In Hindi

Do While Me Pahle Program Execute Hota hai or bad me condition check Hoti Hai | Lekin Do while statement ek bar Jarur execute hoti hai.

Aap Niche Do While Loop Ka Flow Chart Bhi Dekh Sakte Hai, Ki While Loop Kaise Kaam Karti hai.

Do While Loop In C in Hindi

Syntax Do-While Loop

do {
  statements
} while (expression);

Example :-

#include<stdio.h>
#include<conio.h>
int main()
{
	int num=1;	//initializing the variable
        clrscr();
	do	  //do-while loop 
	{
		printf("%d\n",num);
		num++;		//incrementing operation
	}while(num<=10);
        getch();
	return 0;
}

Output:

1
2
3
4
5
6
7
8
9
10

Difference Between C Language While And Do While in Hindi

Ab Ham While Or Do While In C in Hindi Me Difference Dekhne Wale Hai |

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 Jarur execute hoti hai.

difference between while and do while in Hindi

Friends Mujhe Umeed Hai Ki Aapko C Language Loops In Hindi Ke Bare Mai 100% Jankari Ho Gayi Hogi | Agar Aapko Learn Karne Main Dikkat Aa Rahi Hai To Aap Mere Se Contact Kar Sakte Hai |

Leave a Reply

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