Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 11

C Programming Presentation

Presented by :
Presnted to : Name : Abhijeet Dey
Subhojeet Das
Nushrat Mam Rahul Kumar

Class : BCA ‘D’


Acknowledgement

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

Loop control is used to repeat some parts of the program.

Types

for while do while


For loop

Syntax :

For(initialisation; condition; updation){


// do something;
}
//Print Hello World using for loop

#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

You might also like