This project is a web application built with React that visualizes a C programming lecture on loops. It covers the fundamental concepts of loops in C programming, including various types of loops, their structures, and practical examples. The project uses Vite as a build tool and provides an interactive learning experience.
- Cover Page
- Loops Intro
- Marathon Race Animation
- Loop Elements
- Loop Flow
- Types of Loops
- For Loop Details
- For Loop Visualizer
- While Loop Details
- While Loop Visualizer
- Do-While Loop Details
- Do-While Loop Visualizer
- 'Bondipathshala' word টি 5 বার প্রিন্ট করো।
- 1 থেকে 5 পর্যন্ত সংখ্যা গুলো প্রিন্ট করো।
- 1 থেকে 10 পর্যন্ত বিজোড় সংখ্যা গুলো প্রিন্ট করো।
- 1 থেকে 10 পর্যন্ত জোড় সংখ্যা গুলো প্রিন্ট করো।
- 1, 4, 7, ..., 25 সিরিজটি প্রিন্ট করো।
- 100, 90, 80, ..., 0 সিরিজটি প্রিন্ট করো।
- 1 থেকে 5 পর্যন্ত সংখ্যা গুলোর যোগফল নির্নয় করো।
- ১ থেকে ৫ পর্যন্ত সংখ্যা গুলোর যোগফল নির্নয় করো।
- For Loop Sum ForLoopVisualizer
- 1 থেকে 5 পর্যন্ত সংখ্যা গুলোর গুনণফল নির্নয় করো।
- 1^2 + 2^2 + 3^2 + 4^2 + 5^2 ধারার যোগফল নির্নয় করো।
- 1^1 + 2^2 + 3^3 + 4^4 + 5^5 ধারার যোগফল নির্নয় করো।
- 1X3 + 2X4 + 3X5 + 4X6 + 5X7 ধারার যোগফল নির্নয় করো।
- 1/1^2 + 1/2^2 + 1/3^2 + 1/4^2 + 1/5^2 ধারার যোগফল নির্নয় করো।
- IF Else in Loops
An introduction to loops, explaining their purpose and basic structure.
A visual representation of a marathon race to demonstrate loop concepts.
Detailed explanation of the fundamental elements of loops.
Understanding the flow of control in loops.
Overview of different types of loops in C programming.
In-depth look at the for loop structure and usage.
A visual tool to help understand how for loops work.
Detailed explanation of the while loop structure and usage.
A visual tool to help understand how while loops work.
In-depth look at the do-while loop structure and usage.
A visual tool to help understand how do-while loops work.
Example code to print the word 'Bondipathshala' 5 times.
#include <stdio.h>
int main() {
for (int i = 0; i < 5; i++) {
printf("Bondipathshala\n");
}
return 0;
}Example code to print numbers from 1 to 5.
#include <stdio.h>
int main() {
for (int i = 1; i <= 5; i++) {
printf("%d\n", i);
}
return 0;
}Example code to print odd numbers from 1 to 10.
#include <stdio.h>
int main() {
for (int i = 1; i <= 10; i += 2) {
printf("%d\n", i);
}
return 0;
}Example code to print even numbers from 1 to 10.
#include <stdio.h>
int main() {
for (int i = 2; i <= 10; i += 2) {
printf("%d\n", i);
}
return 0;
}Example code to print the series 1, 4, 7, ..., 25.
#include <stdio.h>
int main() {
for (int i = 1; i <= 25; i += 3) {
printf("%d\n", i);
}
return 0;
}Example code to print the series 100, 90, 80, ..., 0.
#include <stdio.h>
int main() {
for (int i = 100; i >= 0; i -= 10) {
printf("%d\n", i);
}
return 0;
}Example code to calculate the sum of numbers from 1 to 5.
#include <stdio.h>
int main() {
int sum = 0;
for (int i = 1; i <= 5; i++) {
sum += i;
}
printf("Sum: %d\n", sum);
return 0;
}Example code to calculate the sum of numbers from 1 to 5.
#include <stdio.h>
int main() {
int sum = 0;
for (int i = 1; i <= 5; i++) {
sum += i;
}
printf("Sum: %d\n", sum);
return 0;
}A visual tool to help understand the sum calculation using for loops.
Example code to calculate the product of numbers from 1 to 5.
#include <stdio.h>
int main() {
int product = 1;
for (int i = 1; i <= 5; i++) {
product *= i;
}
printf("Product: %d\n", product);
return 0;
}Example code to calculate the sum of squares from 1 to 5.
#include <stdio.h>
int main() {
int sum = 0;
for (int i = 1; i <= 5; i++) {
sum += i * i;
}
printf("Sum of squares: %d\n", sum);
return 0;
}Example code to calculate the sum of powers from 1 to 5.
#include <stdio.h>
int main() {
int sum = 0;
for (int i = 1; i <= 5; i++) {
sum += pow(i, i);
}
printf("Sum of powers: %d\n", sum);
return 0;
}Example code to calculate the sum of the series.
#include <stdio.h>
int main() {
int sum = 0;
for (int i = 1; i <= 5; i++) {
sum += i * (i + 2);
}
printf("Sum: %d\n", sum);
return 0;
}Example code to calculate the sum of the series.
#include <stdio.h>
int main() {
double sum = 0.0;
for (int i = 1; i <= 5; i++) {
sum += 1.0 / (i * i);
}
printf("Sum: %f\n", sum);
return 0;
}Understanding the use of if-else statements within loops.
This lecture provides a comprehensive understanding of loops in C programming. Students are encouraged to practice the examples and explore further applications of loops in their coding projects.
