Lazygit | Git Made Easy

এই ভিডিওতে Lazygit কীভাবে কাজ করে তার একটি simple showcase দেখানো হয়েছে। https://github.com/jesseduffield/lazygit?tab=readme-ov-file

BMI calculator

We convert feet & inches to meters, calculate BMI, and show BMI category/status step by step — perfect for beginners learning C programming. Final code #include <stdio.h> /// convert feet and inch to meter float convertFeetInchToMeter(int feet, int inch) { return (feet * .3048) + (inch * .0254); } /// calculate BMI from [weight] in kg and [height] in meter float bmi(float weight, float height) { return weight / (height * height); } /// show message according to [bmi] which is a float void showBMIMessage(float bmi) { if (bmi < 18.5) { printf("status: Underweight\n"); } else if (bmi < 24.9) { printf("status: Normal\n"); } else if (bmi < 29.9) { printf("status: Overweight\n"); } else { printf("status: Obesity\n"); } } int main() { float inch, feet, weight; printf("\nEnter your weight(kg): "); if (scanf("%f", &weight) != 1) { printf("invalid user input, please provide number\n"); return 0; } printf("Enter your height(feet inch): "); if (scanf("%f %f", &feet, &inch) != 1) { printf("invalid user input, please provide number\n"); return 0; } float height = convertFeetInchToMeter(feet, inch); float myBMI = bmi(weight, height); showBMIMessage(myBMI); }

Do While - loop part 8

ভিডিওতে আপনি শিখবেন: ✅ Do-While Loop এর syntax এবং কাজের ধারা ✅ Step-by-step উদাহরণ সহ কোড ব্যাখ্যা ✅ For Loop এবং While Loop এর সাথে পার্থক্য ✅ সাধারণ ভুল এড়ানোর টিপস

Operators

এই ছোট ভিডিওতে আমরা C প্রোগ্রামিং এর Operators এর একটি সংক্ষিপ্ত পরিচিতি দেখব। Arithmetic Operators এবং Operator Precedence এই ভিডিওতে আমরা C Arithmetic Operators এবং Operator Precedence বাংলায় সহজভাবে ব্যাখ্যা করেছি। CodeBlocks দিয়ে সরাসরি উদাহরণ কোড দেখানো হয়েছে যাতে সহজে বুঝা যায়। ...

Git Branching Basics

এই ভিডিওতে আমরা Git Branching কীভাবে ব্যবহার করা হয় তা step by step দেখেছি। Git Branching Commands List branches git branch Create a branch git branch <name> git switch -c <name> # create and switch git switch -c <name> <commit> # create from specific commit Switch branches git switch <branch-name> Delete branches git branch -d <name> # safe delete (merged only) git branch -D <name> # force delete Legacy (use with caution) git checkout <branch-name> # switch or restore files git checkout -b <name> # create and switch

Temperature Converter

How to build a Temperature Converter in C that can convert between Celsius, Fahrenheit, and Kelvin. This beginner-friendly Bangla tutorial explains the logic step by step and includes full coding examples. Final code #include <stdio.h> // show welcome message to choose conversion option void welcome(){ printf("Select conversion:\n"); printf("1. Celsius to Fahrenheit\n"); printf("2. Fahrenheit to Celsius\n"); printf("3. Celsius to Kelvin\n"); printf("4. Kelvin to Celsius\n"); } int main(){ int selectedOption; float temp; welcome(); printf("Enter your choice:"); scanf("%d", &selectedOption); printf("Enter temperature:"); scanf("%f", &temp); switch (selectedOption) { case 1: printf("Farenheight: %.2f\n", (temp * 9/5) + 32); break; case 2: printf("Celsius: %.2f\n", (temp -32) * 5/9); break; case 3: printf("Kelvin: %.2f\n", temp+ 273.15); break; case 4: if(temp < 0){ printf("Kelvin can not be smaller than 0\n"); }else { printf("Kelvin: %.2f\n", temp - 273.15); } break; default: printf("Invalid choice\n"); } }

Memor leaks

Memory leak happens when create dynamic Memory but doesn’t release :) Means when we don’t use free . int *ptr = malloc(N); // and we don't use `free(ftr)` function Memory Leak A common mistake of Memory leak happens when we create dynamic Memory inside function and forget to free it. void func(){ int *ptr; ptr = malloc(sizeof(*ptr)); /// ..... rest code /// we should free ptr end of its uses. } Reallocation Memory leak We can often forget to free old pointer and set null which is better practice. ...

Currency Converter

Build a Currency Converter in C that can convert between USD, BDT, Gold value, and more! This Bangla tutorial explains the logic step-by-step, shows the full code, and includes a recap to help beginners understand everything clearly. Final code #include <stdio.h> /// show gold price on each currency void calculateGoldPrice(float gram) { double rateBDT = 16028.0; double rateUSD = 131.19; double rateEUR = 113.05; printf("Gold Price for %.5f gram\n", gram); printf("BDT: %.2f\n", gram * rateBDT); printf("USD: %.2f\n", gram * rateUSD); printf("EUR: %.2f\n", gram * rateEUR); } int main(){ int choice; printf("Select conversion:\n"); printf("1. USD to BDT\n"); printf("2. BDT to USD\n"); printf("3. USD to EUR\n"); printf("4. Gold Price\n"); printf("Enter choice: "); scanf("%d", &choice); float amount; printf("Enter amount:"); scanf("%f", &amount); if(amount < 0){ printf("Invalid amount\n"); return 0; } printf("\n"); switch (choice) { case 1: printf("BDT %.2f\n", amount * 120); break; case 2: printf("USD %.2f\n", amount / 120); break; case 3: printf("EUR %.2f\n", amount * .92); break; case 4: calculateGoldPrice(amount); break; default: printf("Invalid input\n"); } return 0; }

Electricity Calculator

How to build a complete Electricity Bill Calculator in C, using a tier-based billing system. In this Bangla tutorial, you’ll understand the logic behind electricity units, slabs, and how to calculate the final bill. Perfect for beginners working on C programming projects! Final code #include <stdio.h> /// calculate bill for a single [tier] float calculateTierBill(float unit, int tierLimit, int rate){ int billedUnit = unit<tierLimit ? unit: tierLimit; return billedUnit * rate; } int main(){ /// bill tiers int tierLimits[] = {50, 75, 100, 200}; int rates[] = {5, 7, 9, 10}; int totalTiers = sizeof(rates) / sizeof(rates[0]); float totalUnits; printf("Enter total used unit: "); if(scanf("%f", &totalUnits)!=1 || totalUnits <0){ printf("Invalid input\n"); return 0; } /// total bill float billed = 0; float remainingUnits = totalUnits; int i=0; while(remainingUnits >0){ float tierBill; if(i< totalTiers){ tierBill = calculateTierBill(remainingUnits, tierLimits[i], rates[i]); float billedUnit = remainingUnits < tierLimits[i]? remainingUnits: tierLimits[i]; remainingUnits -= billedUnit; }else { tierBill = remainingUnits * rates[totalTiers-1]; remainingUnits =0 ; } billed += tierBill; i++; } printf("Billed amount %.2f tk\n", billed); return 0; }

Git Branch Merge

Fast-Forward & 3-Way Merge git merge yourBranch Fast-Forward merge When the master branch has no new commits, Git simply moves the master pointer forward to the latest feature commit without creating a new merge commit. A - B C D 3-way merge When both branches have evolved independently, Git combines their histories by generating a brand new “merge commit.” ...