Professional Documents
Culture Documents
C Programming
C Programming
Presented by :
Presnted to : Name : Abhijeet Dey
Subhojeet Das
Nushrat Mam Rahul Kumar
sssfda
I would like to express my deepest gratitude to my Nushrat Mam, for her invaluable guidance,
encouragement, and support throughout the entire process of completing this project.
I would also like to thank my classmates for providing a stimulating and supportive learning
environment, and for their valuable contributions to the project.
I would also like to acknowledge my family and friends for their unwavering support and
encouragement, which gave me the strength to keep going when the going got tough.
Finally, I would like to thank all those who have contributed to this project in any way, big or
small. Your support and help have been greatly appreciated.
Thank you.
Topics :
Loops :
1. For loop
2. While loop
3. Do while loop
Loop Control Instructions
Types
Syntax :
#include <stdio.h>
int main() {
for (int i = 0; i < 5; i++) {
printf("Hello World!\n");
}
return 0;
}
While loop
Syntax :
Initialisation;
While(condition){
//do something;
updation;
}
//Print Hello World using while loop
#include <stdio.h>
int main() {
int i = 0;
while (i < 5) {
printf("Hello World!\n");
i++;
}
return 0;
}
Do while loop
Syntax :
Initialisation;
Do {
//do something;
updation;
} while(condition);
//Print Hello World using while loop
#include <stdio.h>
int main() {
int i = 0;
do {
printf("Hello World!\n");
i++;
} while (i < 5);
return 0;
}
Thank You