0

C language ma loop ka kaise use kaya jata hai

Loop and if else ma kaya use Kaya jata hai

14th Jun 2023, 3:33 AM
Aditya Kumar
Aditya Kumar - avatar
8 odpowiedzi
14th Jun 2023, 4:40 AM
Darpan kesharwani🇮🇳[Inactive📚]
Darpan kesharwani🇮🇳[Inactive📚] - avatar
14th Jun 2023, 5:50 AM
Hasnain [ACTIVE CHALLENGER]
Hasnain [ACTIVE CHALLENGER] - avatar
+ 2
Start learning C language instead of other language.
14th Jun 2023, 12:53 PM
A͢J
A͢J - avatar
+ 1
these are the three type of loop which we can use in c language. #+++++++++for loop for (initialization; condition; increment/decrement) { // code to be repeated } for (int i = 0; i < 5; i++) { printf("Iteration %d\n", i); } #++++++++++while Loop while (condition) { // code to be repeated } int i = 0; while (i < 5) { printf("Iteration %d\n", i); i++; } #+++++++++++ do loop do { // code to be repeated } while (condition); int i = 0; do { printf("Iteration %d\n", i); i++; } while (i < 5);
14th Jun 2023, 10:57 AM
Vaibhav
Vaibhav - avatar
0
Hello
14th Jun 2023, 3:33 AM
Aditya Kumar
Aditya Kumar - avatar
0
If else ko loop se use kaya jata hai
14th Jun 2023, 6:15 AM
Aditya Kumar
Aditya Kumar - avatar
0
Aditya Kumar loop and if_else statements are two different statements, loop use to write multiple lines of code while if_else statements are used to check the condition whether the condition is True or false. -> just completed basic C programming you while understand every thing.
15th Jun 2023, 1:10 AM
Yogesh Pulami
Yogesh Pulami - avatar