2025/11/hsc-ict-chapter-5-c-programming-flowchart.html
Jet Education BD · Updated: November 17, 2025
Chapter 5 তে আমরা শিখব C Programming এবং Flowchart।
এই পোস্টে আমরা C Programming এর সংজ্ঞা, Data Types, Variables, Operators, Input/Output, Control Statements, Loops, Functions, Flowchart, Symbols, Example Programs, Exam Tips এবং Model Questions বিস্তারিত আলোচনা করবো।
C Programming কি?
C হলো একটি high-level structured programming language। এটি সাধারণত system software এবং application software তৈরি করার জন্য ব্যবহৃত হয়।
C এর মাধ্যমে আমরা computer কে step-by-step instructions দিতে পারি।
Data Types & Variables
Primary Data Types: int, float, char, double
Variable: একটি memory location যা value সংরক্ষণ করে
Example:
Variable: একটি memory location যা value সংরক্ষণ করে
Example:
int age = 18;
float price = 25.50;
char grade = 'A';
float price = 25.50;
char grade = 'A';
Input & Output
• Input: scanf()
• Output: printf()
Example:
#include <stdio.h>
int main() {
int age;
printf("Enter your age: ");
scanf("%d", &age);
printf("Your age is %d", age);
return 0;
}
int main() {
int age;
printf("Enter your age: ");
scanf("%d", &age);
printf("Your age is %d", age);
return 0;
}
Operators in C
• Arithmetic: +, -, *, /, %
• Relational: ==, !=, >, <, >=, <=
• Logical: &&, ||, !
• Assignment: =, +=, -=, *=, /=
• Increment/Decrement: ++, --
Control Statements
• if, if-else, nested if-else
• switch-case
Example:
int num = 10;
if(num % 2 == 0) {
printf("Even");
} else {
printf("Odd");
}
if(num % 2 == 0) {
printf("Even");
} else {
printf("Odd");
}
Loops
Functions
Function হলো reusable block of code যা কাজ সম্পন্ন করে।
Example:
int add(int a, int b) {
return a + b;
}
int main() {
int sum = add(5, 3);
printf("%d", sum);
return 0;
}
return a + b;
}
int main() {
int sum = add(5, 3);
printf("%d", sum);
return 0;
}
Flowchart
Flowchart হলো diagram যা program logic প্রদর্শন করে।
**Common Symbols:**
• Oval – Start/End
• Rectangle – Process/Instruction
• Diamond – Decision
• Parallelogram – Input/Output
Example – Sum of two numbers:
**Common Symbols:**
• Oval – Start/End
• Rectangle – Process/Instruction
• Diamond – Decision
• Parallelogram – Input/Output
Example – Sum of two numbers:
Start → Input A, B → Sum = A + B → Output Sum → End
Example Program
Program – Find Largest of Two Numbers:
#include <stdio.h>
int main() {
int a, b;
printf("Enter two numbers: ");
scanf("%d %d", &a, &b);
if(a > b)
printf("%d is larger", a);
else
printf("%d is larger", b);
return 0;
}
int main() {
int a, b;
printf("Enter two numbers: ");
scanf("%d %d", &a, &b);
if(a > b)
printf("%d is larger", a);
else
printf("%d is larger", b);
return 0;
}
Important Exam Tips
• C Programming এর syntax মনে রাখুন
• printf ও scanf ব্যবহার অনুশীলন করুন
• Loop & Decision Statement সবসময় প্র্যাকটিস করুন
• Flowchart symbols এবং logic অনুশীলন করুন
• Function & Program Example মুখস্থ করুন
• printf ও scanf ব্যবহার অনুশীলন করুন
• Loop & Decision Statement সবসময় প্র্যাকটিস করুন
• Flowchart symbols এবং logic অনুশীলন করুন
• Function & Program Example মুখস্থ করুন
Model Questions
১. C Programming কি? উদাহরণসহ লিখুন
২. int, float, char datatype উদাহরণ লিখুন
৩. if-else & switch-case লিখুন
৪. for ও while loop উদাহরণ দেখান
৫. Function & Flowchart example লিখুন
৬. একটি program লিখে দুই সংখ্যার যোগফল বের করুন
FAQ
প্রশ্ন: C Programming কি ধরনের ভাষা?
উত্তর: High-level structured programming language
উত্তর: High-level structured programming language
প্রশ্ন: Flowchart কি?
উত্তর: Diagram যা program logic দেখায়
উত্তর: Diagram যা program logic দেখায়
প্রশ্ন: Function কি?
উত্তর: Reusable block of code যা কাজ সম্পন্ন করে
উত্তর: Reusable block of code যা কাজ সম্পন্ন করে
উপসংহার
C Programming এবং Flowchart HSC ICT পরীক্ষার গুরুত্বপূর্ণ অংশ।
Syntax, Loop, Condition, Function এবং Flowchart ভালোভাবে বুঝলে MCQ ও SAQ উভয়েই সুবিধা পাওয়া যায়।
Jet Education BD নিয়মিত Notes, Example Programs এবং Exam Tips প্রকাশ করে।
Tags: C Programming, Flowchart, Data Types, Loop, Function, HSC ICT Chapter 5, Jet Education

মন্তব্যসমূহ
একটি মন্তব্য পোস্ট করুন