Wednesday, May 13, 2026

C Program to Calculate Simple Interest with Output, Simple Interest Program in C Language

Simple Interest is one of the most common mathematical calculations used in banking, finance, education, and accounting systems. In C language, we can easily calculate Simple Interest using arithmetic operators and basic input-output functions.

Simple Interest बैंकिंग, finance, education तथा accounting systems में उपयोग होने वाली सबसे सामान्य mathematical calculations में से एक है। C language में arithmetic operators तथा basic input-output functions की सहायता से Simple Interest आसानी से निकाला जा सकता है।


Formula of Simple Interest साधारण ब्याज का सूत्र

The formula used to calculate Simple Interest is:

Simple Interest निकालने के लिए निम्न formula का उपयोग किया जाता है:

SI=P*R*T/100

Where:

  • P = Principal Amount मूलधन

  • R = Rate of Interest ब्याज दर

  • T = Time समय

  • SI = Simple Interest साधारण ब्याज


Algorithm एल्गोरिथ्म

  1. Start the program

  2. Declare variables p, r, t, and si

  3. Input principal, rate, and time

  4. Calculate simple interest using formula

  5. Display the result

  6. Stop the program


C Program to Calculate Simple Interest साधारण ब्याज निकालने का सी प्रोग्राम 

#include<stdio.h>
int main()
{
float p,r,t,si;
printf("Enter Principal Amount: ");
scanf("%f",&p);
printf("Enter Rate of Interest: ");
scanf("%f",&r);
printf("Enter Time: ");
scanf("%f",&t);
si = (p*r*t)/100;
printf("Simple Interest = %.2f",si);
return 0;
}

Output आउटपुट

Enter Principal Amount: 10000
Enter Rate of Interest: 5
Enter Time: 2
Simple Interest = 1000.00

Explanation of the Program प्रोग्राम की व्याख्या

#include<stdio.h>

This header file is used for standard input and output functions like printf() and scanf().

यह header file printf() तथा scanf() जैसे standard input-output functions के लिए उपयोग होती है।


int main()

The execution of every C program starts from the main() function.

प्रत्येक C program का execution main() function से शुरू होता है।


float p,r,t,si;

These variables are declared to store:

  • Principal Amount

  • Rate of Interest

  • Time

  • Simple Interest

इन variables का उपयोग निम्न values store करने के लिए किया जाता है:

  • Principal Amount

  • Rate of Interest

  • Time

  • Simple Interest


scanf()

scanf() function is used to accept input from the user.

scanf() function user से input लेने के लिए उपयोग किया जाता है।


si = (prt)/100;

This statement calculates the Simple Interest using the mathematical formula.

यह statement mathematical formula की सहायता से Simple Interest की गणना करता है।


printf()

printf() function is used to display output on the screen.

printf() function स्क्रीन पर output प्रदर्शित करने के लिए उपयोग होता है।


Real-Life Applications वास्तविक जीवन में उपयोग

Simple Interest calculation is used in:

  • Banking Systems

  • Loan Management

  • Finance Applications

  • Educational Software

  • Accounting Systems


Important Viva Questions महत्वपूर्ण Viva Questions

Q1. What is Simple Interest?

Simple Interest is the interest calculated only on the principal amount.

Simple Interest वह ब्याज है जो केवल मूलधन पर निकाला जाता है।


Q2. Which operator is used for multiplication in C?

The * operator is used for multiplication.

C language में multiplication के लिए * operator उपयोग होता है।


Q3. Which header file is required for printf() and scanf()?

stdio.h header file is required.

printf() तथा scanf() के लिए stdio.h header file आवश्यक होती है।

This program is one of the best beginner-level C programs for understanding arithmetic operations, variables, formulas, and input-output handling. It helps students build a strong foundation in programming logic and mathematical implementation using C language.

यह program beginners के लिए सबसे महत्वपूर्ण C programs में से एक है क्योंकि इससे arithmetic operations, variables, formulas तथा input-output handling को समझने में सहायता मिलती है। यह C language में programming logic तथा mathematical implementation की मजबूत नींव तैयार करता है।

Basic and Important C Programs महत्वपूर्ण एवं सामान्य सी प्रोग्राम (Sequential Structure Programs)

Sequential structure programs are the simplest programs in C language where statements are executed one after another in sequence. These programs help beginners understand variables, operators, input-output functions, formulas, and basic program logic.

Sequential structure programs C language के सबसे सरल programs होते हैं जिनमें statements क्रमवार execute होते हैं। ये programs विद्यार्थियों को variables, operators, input-output functions, formulas तथा basic programming logic समझने में सहायता करते हैं।


1. C Program to Calculate Simple Interest
1. Simple Interest निकालने का C Program

#include<stdio.h>
int main()
{
float p,r,t,si;
printf("Enter Principal, Rate and Time:\n");
scanf("%f%f%f",&p,&r,&t);
si = p*r*t/100;
printf("Simple Interest = %.2f",si);
return 0;
}

Output:

Enter Principal, Rate and Time:
1000
5
2
Simple Interest = 100.00

2. C Program to Find ASCII Value of a Character
2. Character का ASCII Value ज्ञात करने का Program

#include<stdio.h>
int main()
{
char ch;
printf("Enter any character: ");
scanf("%c",&ch);
printf("ASCII Value = %d",ch);
return 0;
}

Output:

Enter any character: A
ASCII Value = 65

3. C Program to Find Area of Triangle using Heron’s Formula
3. Heron’s Formula से Triangle का Area निकालने का Program

#include<stdio.h>
#include<math.h>
int main()
{
float a,b,c,s,area;
printf("Enter three sides of triangle:\n");
scanf("%f%f%f",&a,&b,&c);
s = (a+b+c)/2;
area = sqrt(s*(s-a)*(s-b)*(s-c));
printf("Area of Triangle = %.2f",area);
return 0;
}

Output:

Enter three sides of triangle:
3
4
5
Area of Triangle = 6.00

4. C Program for Addition, Subtraction, Multiplication and Division
4. Addition, Subtraction, Multiplication एवं Division का Program

#include<stdio.h>
int main()
{
int a,b;
printf("Enter two numbers:\n");
scanf("%d%d",&a,&b);
printf("Addition = %d\n",a+b);
printf("Subtraction = %d\n",a-b);
printf("Multiplication = %d\n",a*b);
printf("Division = %d\n",a/b);
return 0;
}

Output:

Enter two numbers:
20
10
Addition = 30
Subtraction = 10
Multiplication = 200
Division = 2

5. C Program to Find Area and Circumference of Circle
5. Circle का Area एवं Circumference निकालने का Program

#include<stdio.h>
int main()
{
float r,area,circumference;
printf("Enter radius of circle: ");
scanf("%f",&r);
area = 3.14*r*r;
circumference = 2*3.14*r;
printf("Area = %.2f\n",area);
printf("Circumference = %.2f",circumference);
return 0;
}

Output:

Enter radius of circle: 7
Area = 153.86
Circumference = 43.96

6. C Program to Swap Two Variables without Third Variable
6. Third Variable के बिना Variables Swap करने का Program

#include<stdio.h>
int main()
{
int a,b;
printf("Enter two numbers:\n");
scanf("%d%d",&a,&b);
a = a+b;
b = a-b;
a = a-b;
printf("After Swapping:\n");
printf("a = %d\nb = %d",a,b);
return 0;
}

Output:

Enter two numbers:
10
20
After Swapping:
a = 20
b = 10

7. C Program to Swap Two Variables using Third Variable
7. Third Variable का उपयोग करके Variables Swap करने का Program

#include<stdio.h>
int main()
{
int a,b,temp;
printf("Enter two numbers:\n");
scanf("%d%d",&a,&b);
temp = a;
a = b;
b = temp;
printf("After Swapping:\n");
printf("a = %d\nb = %d",a,b);
return 0;
}

Output:

Enter two numbers:
15
25
After Swapping:
a = 25
b = 15

8. C Program to Find Square, Cube and Square Root
8. Square, Cube एवं Square Root निकालने का Program

#include<stdio.h>
#include<math.h>
int main()
{
float n;
printf("Enter any number: ");
scanf("%f",&n);
printf("Square = %.2f\n",n*n);
printf("Cube = %.2f\n",n*n*n);
printf("Square Root = %.2f",sqrt(n));
return 0;
}

Output:

Enter any number: 9
Square = 81.00
Cube = 729.00
Square Root = 3.00

9. C Program to Calculate Gross Salary
9. Gross Salary निकालने का Program

#include<stdio.h>
int main()
{
float basic,hra,da,gross;
printf("Enter Basic Salary: ");
scanf("%f",&basic);
hra = basic*20/100;
da = basic*80/100;
gross = basic + hra + da;
printf("Gross Salary = %.2f",gross);
return 0;
}

Output:

Enter Basic Salary: 10000
Gross Salary = 20000.00

10. C Program to Convert Celsius into Fahrenheit
10. Celsius को Fahrenheit में Convert करने का Program

#include<stdio.h>
int main()
{
float c,f;
printf("Enter temperature in Celsius: ");
scanf("%f",&c);
f = (9*c/5)+32;
printf("Temperature in Fahrenheit = %.2f",f);
return 0;
}

Output:

Enter temperature in Celsius: 37
Temperature in Fahrenheit = 98.60

11. C Program to Calculate Percentage of Five Subjects
11. पाँच विषयों का Percentage निकालने का Program

#include<stdio.h>
int main()
{
float a,b,c,d,e,total,per;
printf("Enter marks of five subjects:\n");
scanf("%f%f%f%f%f",&a,&b,&c,&d,&e);
total = a+b+c+d+e;
per = total/5;
printf("Total Marks = %.2f\n",total);
printf("Percentage = %.2f",per);
return 0;
}

Output:

Enter marks of five subjects:
80
75
90
85
70
Total Marks = 400.00
Percentage = 80.00

12. C Program to Find Area of Rectangle
12. Rectangle का Area निकालने का Program

#include<stdio.h>
int main()
{
float l,b,area;
printf("Enter length and breadth:\n");
scanf("%f%f",&l,&b);
area = l*b;
printf("Area of Rectangle = %.2f",area);
return 0;
}

Output:

Enter length and breadth:
10
5
Area of Rectangle = 50.00

13. C Program to Find Area of Square
13. Square का Area निकालने का Program

#include<stdio.h>
int main()
{
float side,area;
printf("Enter side of square: ");
scanf("%f",&side);
area = side*side;
printf("Area of Square = %.2f",area);
return 0;
}

Output:

Enter side of square: 6
Area of Square = 36.00

14. C Program to Convert Days into Years, Months and Days
14. Days को Years, Months और Days में Convert करने का Program

#include<stdio.h>
int main()
{
int days,years,months,remaining;
printf("Enter total days: ");
scanf("%d",&days);
years = days/365;
remaining = days%365;
months = remaining/30;
remaining = remaining%30;
printf("Years = %d\n",years);
printf("Months = %d\n",months);
printf("Days = %d",remaining);
return 0;
}

Output:

Enter total days: 500
Years = 1
Months = 4
Days = 15

15. C Program to Find Average of Three Numbers
15. तीन संख्याओं का Average निकालने का Program

#include<stdio.h>
int main()
{
float a,b,c,avg;
printf("Enter three numbers:\n");
scanf("%f%f%f",&a,&b,&c);
avg = (a+b+c)/3;
printf("Average = %.2f",avg);
return 0;
}

Output:

Enter three numbers:
10
20
30
Average = 20.00

Sequential structure programs are the foundation of C programming. These programs help beginners understand input-output operations, variables, formulas, arithmetic operations, and program execution flow. Mastering these basic programs builds a strong base for learning advanced programming concepts such as conditional statements, loops, arrays, functions, pointers, and data structures.

Sequential structure programs C programming की नींव हैं। ये programs विद्यार्थियों को input-output operations, variables, formulas, arithmetic operations तथा program execution flow समझने में सहायता करते हैं। इन basic programs में mastery प्राप्त करने से आगे के advanced topics जैसे conditional statements, loops, arrays, functions, pointers तथा data structures सीखना आसान हो जाता है।

Structure of a C Program सी प्रोग्राम की संरचना

Every programming language follows a specific structure or format for writing programs. In C language, a program is divided into different sections, where each section performs a particular task. Understanding the structure of a C program is very important because it helps beginners learn how C programs are organized, compiled, and executed.

प्रत्येक प्रोग्रामिंग लैंग्वेज में प्रोग्राम लिखने का एक निश्चित प्रारूप या संरचना होती है। C language में भी program को विभिन्न sections में विभाजित किया जाता है, जहाँ प्रत्येक section एक विशेष कार्य करता है। C program की संरचना को समझना अत्यंत महत्वपूर्ण है क्योंकि इससे विद्यार्थियों को यह समझने में सहायता मिलती है कि C programs कैसे organize, compile तथा execute होते हैं।


Basic Structure of a C Program सी प्रोग्राम का मूल स्ट्रक्चर

A standard C program generally contains the following sections:

एक सामान्य C program निम्न sections से मिलकर बना होता है:

  1. Include Section

  2. Global Constants and Macro Section

  3. Function Declaration Section

  4. Main Function Section

  5. User-Defined Function Section


1. Include Section

The Include Section contains header files required by the program. Header files provide predefined functions and libraries to perform input-output operations, mathematical calculations, string handling, and other system tasks.

Include Section में वे header files शामिल की जाती हैं जिनकी आवश्यकता program को होती है। Header files predefined functions तथा libraries प्रदान करती हैं जिनकी सहायता से input-output operations, mathematical calculations, string handling तथा अन्य system tasks किए जाते हैं।

This section uses preprocessor directives such as:

इस section में preprocessor directives का उपयोग किया जाता है जैसे:

#include<stdio.h>
#include<conio.h>

Here:

  • stdio.h is used for standard input-output functions.

  • conio.h is used for console-related functions.

यहाँ:

  • stdio.h standard input-output functions के लिए उपयोग होती है।

  • conio.h console-related functions के लिए उपयोग होती है।


2. Global Constants and Macro Section

This section is used to define global constants, macros, and global variables which can be accessed throughout the program.

इस section का उपयोग global constants, macros तथा global variables को define करने के लिए किया जाता है जिन्हें पूरे program में access किया जा सकता है।

Example:

उदाहरण:

#define PI 3.14

The #define directive is processed before compilation by the preprocessor.

#define directive को compilation से पहले preprocessor द्वारा process किया जाता है।


3. Function Declaration Section

This section contains the declaration or prototype of user-defined functions that are used before the main() function.

इस section में उन user-defined functions की declaration या prototype दी जाती है जिन्हें main() function से पहले उपयोग किया जाना है।

Example:

उदाहरण:

float calculateSI(float,float,float);

Function prototypes help the compiler understand:

  • Function name

  • Return type

  • Number of parameters

  • Type of parameters

Function prototype compiler को निम्न जानकारी प्रदान करता है:

  • Function name

  • Return type

  • Number of parameters

  • Type of parameters


4. Main Function Section

The main() function is the most important part of every C program because program execution starts from the main() function.

main() function प्रत्येक C program का सबसे महत्वपूर्ण भाग होता है क्योंकि program का execution main() function से ही प्रारंभ होता है।

The main function generally contains:

  • Variable Declaration

  • Initialization

  • Executable Statements

  • Function Calls

  • Return Statement

main function में सामान्यतः निम्न भाग होते हैं:

  • Variable Declaration

  • Initialization

  • Executable Statements

  • Function Calls

  • Return Statement

Basic Syntax:

मूल Syntax:

int main()
{
// statements
return 0;
}

5. User-Defined Function Section

This section contains the definition of user-defined functions created by the programmer.

इस section में programmer द्वारा बनाए गए user-defined functions की definition दी जाती है।

Functions improve:

  • Code reusability

  • Program readability

  • Modular programming

Functions से:

  • Code reusability बढ़ती है

  • Program readability बेहतर होती है

  • Modular programming संभव होती है


Example Program: Simple Interest


C Program for Simple Interest साधारण ब्याज निकालने का सी प्रोग्राम 

File Name: si.c

#include<stdio.h>
#include<conio.h>
int main()
{
float p,r,t,si;
clrscr();
printf("Enter Principal, Rate and Time\n");
scanf("%f%f%f",&p,&r,&t);
si = p*r*t/100;
printf("Simple Interest = %f",si);
getch();
return 1;
}

Explanation of the Program प्रोग्राम की व्याख्या

#include<stdio.h>

This header file is used for input-output functions like printf() and scanf().

यह header file printf() और scanf() जैसे input-output functions के लिए उपयोग होती है।


#include<conio.h>

This header file is used for console functions like clrscr() and getch().

यह header file clrscr() और getch() जैसे console functions के लिए उपयोग होती है।


int main()

This is the starting point of program execution.

यह program execution का प्रारंभिक बिंदु है।


float p,r,t,si;

These variables are declared to store:

  • Principal

  • Rate

  • Time

  • Simple Interest

इन variables का उपयोग निम्न values को store करने के लिए किया जाता है:

  • Principal

  • Rate

  • Time

  • Simple Interest


scanf()

This function accepts input from the user.

यह function user से input प्राप्त करता है।


si = prt/100;

This statement calculates simple interest.

यह statement simple interest की गणना करता है।


printf()

This function displays output on the screen.

यह function स्क्रीन पर output प्रदर्शित करता है।


Output Example

आउटपुट उदाहरण

Enter Principal, Rate and Time
1000
5
2
Simple Interest = 100.000000

Importance of Understanding Program Structure प्रोग्राम स्ट्रक्चर को समझने का महत्व

Understanding the structure of a C program helps students:

  • Write organized programs

  • Debug errors easily

  • Improve programming logic

  • Build modular applications

  • Understand software development fundamentals

C program structure को समझने से विद्यार्थी:

  • Organized programs लिख पाते हैं

  • Errors आसानी से debug कर पाते हैं

  • Programming logic बेहतर बना पाते हैं

  • Modular applications विकसित कर पाते हैं

  • Software development fundamentals समझ पाते हैं

The structure of a C program provides a systematic way to write efficient and understandable code. Every section of a C program has a specific purpose, and together they create a complete executable application. Learning program structure is the first step toward becoming a professional programmer.

C program की संरचना efficient और understandable code लिखने का व्यवस्थित तरीका प्रदान करती है। C program का प्रत्येक section एक विशेष कार्य करता है और सभी sections मिलकर एक complete executable application बनाते हैं। Program structure सीखना professional programmer बनने की पहली सीढ़ी है।

Next Topic:- Basic and Important C Programs महत्वपूर्ण एवं सामान्य सी प्रोग्राम (Sequential Structure Programs)

Features of C Language सी लैंग्वेज की विशेषताएँ, Applications of C Language सी लैंग्वेज के उपयोग

Features of C Language सी लैंग्वेज की विशेषताएँ:-

C language is one of the most powerful and widely used programming languages in the world. It is known for its speed, flexibility, portability, and hardware-level control. Due to its unique features, C language is still used in modern technologies such as operating systems, embedded systems, cybersecurity, robotics, artificial intelligence, and high-performance computing.

C लैंग्वेज दुनिया की सबसे शक्तिशाली और व्यापक रूप से उपयोग की जाने वाली प्रोग्रामिंग भाषाओं में से एक है। यह अपनी speed, flexibility, portability तथा hardware-level control के लिए प्रसिद्ध है। अपनी विशेषताओं के कारण C language आज भी operating systems, embedded systems, cybersecurity, robotics, artificial intelligence तथा high-performance computing जैसी आधुनिक technologies में उपयोग की जाती है।


1. General Purpose Programming Language 

C is known as a General Purpose Programming Language because it can be used to develop different types of software applications. It is suitable for both small programs and large enterprise-level systems.

C को General Purpose Programming Language कहा जाता है क्योंकि इसका उपयोग विभिन्न प्रकार के software applications बनाने के लिए किया जा सकता है। यह छोटे programs से लेकर बड़े enterprise-level systems तक के लिए उपयुक्त है।

With C language, developers can create:

  • Application Software

  • System Software

  • Embedded Software

  • Database Systems

  • Networking Applications

C language की सहायता से डेवलपर निम्न प्रकार के software बना सकते हैं:

  • Application Software

  • System Software

  • Embedded Software

  • Database Systems

  • Networking Applications


2. Structured and Modular Programming Support

C language supports structured programming, which means large programs can be divided into smaller modules or functions. This makes programs easier to understand, debug, test, and maintain.

C language structured programming को support करती है, अर्थात बड़े programs को छोटे modules या functions में विभाजित किया जा सकता है। इससे programs को समझना, debug करना, test करना तथा maintain करना आसान हो जाता है।

Modular programming improves:

  • Code readability

  • Reusability

  • Program maintenance

  • Team collaboration

Modular programming से निम्न लाभ प्राप्त होते हैं:

  • Code readability

  • Reusability

  • Program maintenance

  • Team collaboration


3. Fast Execution Speed

Programs written in C language execute very fast because C directly interacts with system hardware and memory. C programs are compiled into machine code, which allows efficient CPU execution.

C language में लिखे गए programs बहुत तेज गति से execute होते हैं क्योंकि C सीधे system hardware और memory के साथ कार्य करती है। C programs machine code में compile होते हैं जिससे CPU उन्हें तेजी से execute करता है।

This feature makes C ideal for:

  • Operating Systems

  • Real-Time Systems

  • Game Engines

  • Embedded Devices

यह विशेषता C को निम्न क्षेत्रों के लिए उपयुक्त बनाती है:

  • Operating Systems

  • Real-Time Systems

  • Game Engines

  • Embedded Devices


4. Rich Standard Library समृद्ध लाइब्रेरी 

C language provides a rich collection of built-in functions through its standard libraries. These libraries help programmers perform mathematical calculations, file handling, string operations, memory management, and input/output operations easily.

C language built-in functions का विशाल संग्रह प्रदान करती है जिन्हें standard libraries कहा जाता है। इन libraries की सहायता से programmer mathematical calculations, file handling, string operations, memory management तथा input/output operations आसानी से कर सकते हैं।

Important C libraries include:

  • stdio.h

  • stdlib.h

  • string.h

  • math.h

  • time.h

C की महत्वपूर्ण libraries हैं:

  • stdio.h

  • stdlib.h

  • string.h

  • math.h

  • time.h


5. Efficient Memory Management प्रभावी मेमोरी प्रबंधन 

C language provides direct control over memory through pointers and dynamic memory allocation functions such as malloc(), calloc(), realloc(), and free().

C language pointers तथा dynamic memory allocation functions जैसे malloc(), calloc(), realloc() और free() की सहायता से memory पर सीधा नियंत्रण प्रदान करती है।

Efficient memory management helps in:

  • Optimizing system performance

  • Reducing memory waste

  • Building high-performance applications

Efficient memory management से:

  • System performance बेहतर होती है

  • Memory waste कम होता है

  • High-performance applications बनाए जा सकते हैं


6. Pointer Support 

Pointers are one of the most powerful features of C language. A pointer stores the memory address of another variable.

Pointers, C language की सबसे शक्तिशाली विशेषताओं में से एक हैं। Pointer किसी अन्य variable का memory address store करता है।

Pointers are used in:

  • Dynamic Memory Allocation

  • Arrays and Strings

  • Data Structures

  • System Programming

  • Hardware Communication

Pointers का उपयोग:

  • Dynamic Memory Allocation

  • Arrays और Strings

  • Data Structures

  • System Programming

  • Hardware Communication में किया जाता है।


7. Portable and Cross-Platform

C language is highly portable, meaning programs written in C can run on different operating systems and hardware architectures with minimal changes.

C language अत्यधिक portable है, अर्थात C में लिखा गया program बहुत कम परिवर्तन के साथ विभिन्न operating systems और hardware architectures पर चल सकता है।

C supports platforms such as:

  • Windows

  • Linux

  • macOS

  • Embedded Devices

C निम्न platforms को support करती है:

  • Windows

  • Linux

  • macOS

  • Embedded Devices


8. Supports System and Application Programming

C language supports both System Programming and Application Programming.

C language System Programming तथा Application Programming दोनों को support करती है।

Examples of system software:

  • Operating Systems

  • Device Drivers

  • Compilers

Examples of application software:

  • Text Editors

  • Database Applications

  • Utility Software

System Software के उदाहरण:

  • Operating Systems

  • Device Drivers

  • Compilers

Application Software के उदाहरण:

  • Text Editors

  • Database Applications

  • Utility Software


9. Extensible and Scalable

C language allows programmers to add new functions, libraries, and modules according to project requirements. Large-scale applications can also be developed efficiently in C.

C language programmer को project requirements के अनुसार नए functions, libraries और modules जोड़ने की सुविधा देती है। C में बड़े स्तर के applications भी efficiently विकसित किए जा सकते हैं।

This feature is useful in:

  • Enterprise Software

  • Game Engines

  • Scientific Applications

यह विशेषता निम्न क्षेत्रों में उपयोगी है:

  • Enterprise Software

  • Game Engines

  • Scientific Applications


10. Hardware Interaction Capability

C language provides low-level access to hardware resources, making it highly suitable for system-level programming and embedded systems.

C language hardware resources तक low-level access प्रदान करती है, जिससे यह system-level programming तथा embedded systems के लिए अत्यंत उपयुक्त बन जाती है।

C can directly interact with:

  • Memory Addresses

  • CPU Registers

  • Input/Output Devices

  • Microcontrollers

C सीधे निम्न से interact कर सकती है:

  • Memory Addresses

  • CPU Registers

  • Input/Output Devices

  • Microcontrollers


Applications of C Language सी लैंग्वेज के उपयोग:-

Today, C language is used in many advanced technological domains because of its speed, portability, efficiency, and hardware-level control.

आज C language अपनी speed, portability, efficiency तथा hardware-level control के कारण अनेक advanced technological domains में उपयोग की जाती है।


1. Operating Systems Development

Most modern operating systems such as UNIX, Linux, and parts of Windows are developed using C language.

UNIX, Linux तथा Windows के कुछ भाग जैसे आधुनिक operating systems C language में विकसित किए गए हैं।


2. Embedded Systems

C language is widely used in embedded systems such as smart TVs, washing machines, traffic control systems, and automotive electronics.

C language का उपयोग smart TVs, washing machines, traffic control systems तथा automotive electronics जैसे embedded systems में व्यापक रूप से किया जाता है।


3. Internet of Things (IoT)

IoT devices require lightweight and efficient programs, making C language ideal for IoT development.

IoT devices को lightweight और efficient programs की आवश्यकता होती है, इसलिए C language IoT development के लिए उपयुक्त है।


4. Artificial Intelligence Libraries

Many AI frameworks and machine learning libraries use C language internally for high-speed processing.

कई AI frameworks तथा machine learning libraries high-speed processing के लिए internally C language का उपयोग करती हैं।


5. Cybersecurity Tools

C language is used in penetration testing tools, antivirus software, malware analysis tools, and security frameworks.

C language का उपयोग penetration testing tools, antivirus software, malware analysis tools तथा security frameworks में किया जाता है।


6. Game Engines

Game engines require high performance and direct hardware interaction, which makes C suitable for game development.

Game engines को high performance तथा direct hardware interaction की आवश्यकता होती है, इसलिए C game development के लिए उपयुक्त है।


7. Compiler Design

Many compilers and interpreters are developed using C language because of its efficiency and low-level capabilities.

कई compilers और interpreters को C language में विकसित किया जाता है क्योंकि यह efficient तथा low-level capabilities प्रदान करती है।


8. Database Systems

Database management systems use C language for optimized data processing and storage management.

Database management systems optimized data processing तथा storage management के लिए C language का उपयोग करते हैं।


9. Network Programming

C language is widely used in socket programming, network servers, and communication protocols.

C language socket programming, network servers तथा communication protocols में व्यापक रूप से उपयोग की जाती है।


10. Robotics and Automation

Robotics systems require fast hardware communication and real-time processing, making C highly useful.

Robotics systems को fast hardware communication तथा real-time processing की आवश्यकता होती है, इसलिए C अत्यंत उपयोगी है।


11. High-Performance Computing

C language is used in scientific computing, simulations, and high-performance applications because of its execution speed.

C language का उपयोग scientific computing, simulations तथा high-performance applications में इसकी execution speed के कारण किया जाता है।

C language remains one of the most important programming languages in the modern technology world. Its powerful features and wide range of applications make it essential for programmers, software engineers, cybersecurity experts, embedded developers, and system architects.

C language आज भी आधुनिक तकनीकी दुनिया की सबसे महत्वपूर्ण programming languages में से एक है। इसकी शक्तिशाली विशेषताएँ तथा व्यापक उपयोग इसे programmers, software engineers, cybersecurity experts, embedded developers तथा system architects के लिए अत्यंत आवश्यक बनाते हैं।

Next Topic:- Structure of C Program

History and Evolution of C Language सी लैंग्वेज का इतिहास एवं विकास

Introduction of C Language सी लैंग्वेज का परिचय

C language is one of the most influential and powerful programming languages in the history of computer science. It was developed by Dennis Ritchie in 1972 at Bell Labs. The language was mainly designed for developing the UNIX operating system and low-level system software. Over time, C became the foundation for many modern programming languages such as C++, Java, C#, Objective-C, and even parts of Python and JavaScript compilers.

सी लैंग्वेज कंप्यूटर विज्ञान के इतिहास की सबसे प्रभावशाली और शक्तिशाली प्रोग्रामिंग लैंग्वेज में से एक है। इसका विकास Dennis Ritchie द्वारा 1972 में Bell Labs में किया गया था। इस लैंग्वेज का निर्माण मुख्य रूप से UNIX ऑपरेटिंग सिस्टम और सिस्टम सॉफ्टवेयर विकसित करने के लिए किया गया था। समय के साथ C लैंग्वेज आधुनिक भाषाओं जैसे C++, Java, C#, Objective-C तथा Python और JavaScript के कुछ भागों की आधारशिला बन गई।


Evolution of C Language सी लैंग्वेज का विकास

Before the invention of C language, programmers mainly used assembly language and earlier programming languages for system-level programming. The development journey of C language started from BCPL (Basic Combined Programming Language), which was created by Martin Richards. Later, B language was developed by Ken Thompson at Bell Labs. Dennis Ritchie improved the features of B language and introduced advanced concepts to create C language.

सी लैंग्वेज के निर्माण से पहले प्रोग्रामर मुख्यतः Assembly Language तथा अन्य प्रारंभिक भाषाओं का उपयोग करते थे। C लैंग्वेज की विकास यात्रा BCPL (Basic Combined Programming Language) से शुरू हुई थी, जिसे Martin Richards ने विकसित किया था। इसके बाद Bell Labs में Ken Thompson द्वारा B Language बनाई गई। Dennis Ritchie ने B Language के फीचर्स को और उन्नत बनाकर C Language का निर्माण किया।

The evolution sequence can be understood as इसका विकास क्रम इस प्रकार समझा जा सकता है:

BCPL → B Language → C Language → C++ → Modern System Languages


Why C Language Became Popular सी लैंग्वेज लोकप्रिय क्यों बनी

C language became extremely popular because it combined the simplicity of high-level programming with the speed and efficiency of low-level programming. It provided programmers direct access to memory, hardware, and system resources while still maintaining readable and structured syntax.

C लैंग्वेज अत्यधिक लोकप्रिय इसलिए बनी क्योंकि इसमें High-Level Programming की सरलता और Low-Level Programming की गति एवं क्षमता दोनों मौजूद थीं। यह प्रोग्रामर को Memory, Hardware तथा System Resources तक सीधी पहुँच प्रदान करती है और साथ ही इसका Syntax सरल एवं Structured रहता है।

Some important reasons for its popularity are इसकी लोकप्रियता के प्रमुख कारण हैं:

  • Fast execution speed

  • Portable and cross-platform nature

  • Structured programming support

  • Efficient memory management

  • Easy integration with hardware

  • Foundation for operating systems and embedded systems


C as a Middle Level Language सी एक मिडिल लेवल लैंग्वेज के रूप में

C language is called a Middle Level Language because it contains the features of both High-Level Language and Low-Level Language. The syntax of C language is simple and similar to English language, making programs easy to read, write, and understand. This characteristic represents a High-Level Language.

सी लैंग्वेज को Middle Level Language कहा जाता है क्योंकि इसमें High-Level Language और Low-Level Language दोनों की विशेषताएँ मौजूद होती हैं। C लैंग्वेज का Syntax सरल होता है और यह English Language के समान दिखाई देता है, जिससे प्रोग्राम को पढ़ना, लिखना और समझना आसान हो जाता है। यह High-Level Language की विशेषता है।

At the same time, C language allows direct memory access, pointer manipulation, and hardware-level operations. Programs written in C are compiled and executed very fast, which represents the characteristics of Machine Language or Low-Level Language.

इसी के साथ C Language Memory Access, Pointer Manipulation और Hardware-Level Operations की सुविधा भी प्रदान करती है। C में लिखे गए प्रोग्राम बहुत तेज गति से Compile और Execute होते हैं, जो Machine Language या Low-Level Language की विशेषता है।

Therefore, because C language combines the advantages of both levels, it is known as a Middle Level Language.

अतः C Language में दोनों स्तरों की विशेषताएँ होने के कारण इसे Middle Level Language कहा जाता है।


C as a Powerful Programming Language सी एक शक्तिशाली प्रोग्रामिंग लैंग्वेज के रूप में

C language is considered a powerful programming language because it can be used for both Application Programming and System Programming. Developers can create various application software such as management systems, graphical tools, database applications, and utility software using C language.

C लैंग्वेज को एक शक्तिशाली प्रोग्रामिंग लैंग्वेज माना जाता है क्योंकि इसका उपयोग Application Programming और System Programming दोनों के लिए किया जा सकता है। डेवलपर्स C Language की सहायता से Management Systems, Graphical Tools, Database Applications और Utility Software जैसे अनेक Application Software बना सकते हैं।

C is also widely used in the development of operating systems, device drivers, compilers, embedded systems, robotics, network tools, and cybersecurity software. Due to its high performance and direct hardware interaction capability, C remains one of the most important languages in modern computing.

C का उपयोग Operating Systems, Device Drivers, Compilers, Embedded Systems, Robotics, Network Tools तथा Cybersecurity Software के विकास में भी व्यापक रूप से किया जाता है। इसकी High Performance और Hardware Interaction क्षमता के कारण C आज भी आधुनिक कंप्यूटिंग की सबसे महत्वपूर्ण भाषाओं में से एक है।


Standardization of C Language सी  लैंग्वेज का मानकीकरण

As C language became widely popular across the world, there was a need to standardize it to maintain compatibility between different systems and compilers. In 1989, the American National Standards Institute (ANSI) officially standardized C language. Later, the International Organization for Standardization (ISO) adopted it as an international standard.

जब C Language पूरी दुनिया में लोकप्रिय होने लगी, तब विभिन्न Systems और Compilers के बीच Compatibility बनाए रखने के लिए इसे Standardize करने की आवश्यकता हुई। 1989 में American National Standards Institute (ANSI) ने इसे आधिकारिक रूप से Standard Language घोषित किया। बाद में International Organization for Standardization (ISO) ने भी इसे International Standard के रूप में स्वीकार किया।

Important versions of C language include सी लैंग्वेज के महत्वपूर्ण संस्करण हैं:

  • C89 / ANSI C

  • C90

  • C99

  • C11

  • C17

  • C18

  • Modern C23 Standard

C language is not only a historical programming language but also one of the strongest foundations of modern computing systems. Its balance of performance, portability, simplicity, and hardware-level control makes it highly valuable even in 2026 and beyond. Learning C language helps students understand the internal working of computers, operating systems, and modern software technologies.

C Language केवल एक ऐतिहासिक प्रोग्रामिंग लैंग्वेज नहीं है, बल्कि यह आधुनिक कंप्यूटिंग सिस्टम की सबसे मजबूत आधारशिलाओं में से एक है। इसकी Performance, Portability, Simplicity और Hardware-Level Control की विशेषताएँ इसे 2026 और भविष्य में भी अत्यंत महत्वपूर्ण बनाती हैं। C Language सीखने से विद्यार्थियों को Computers, Operating Systems तथा आधुनिक Software Technologies की आंतरिक कार्यप्रणाली समझने में सहायता मिलती है।

Next Topic:- Features and Applications of C Language

Sunday, May 10, 2026

Flowchart in Programming प्रोग्रामिंग में फ्लोचार्ट

A flowchart is a graphical representation of an algorithm or program logic. It uses different symbols and arrows to represent the sequence of operations performed in a program. Flowcharts help programmers understand the flow of execution in a simple and visual manner.

फ्लोचार्ट किसी अल्गोरिथम या प्रोग्राम लॉजिक का ग्राफिकल प्रदर्शन होता है। इसमें विभिन्न प्रतीकों और तीरों का उपयोग करके प्रोग्राम में होने वाले कार्यों के क्रम को दर्शाया जाता है। फ्लोचार्ट प्रोग्राम के कार्य प्रवाह को सरल एवं दृश्य रूप में समझने में सहायता करता है।

Flowcharts are considered important logic development tools because they simplify problem analysis, program design, debugging, and communication between developers.

फ्लोचार्ट को महत्वपूर्ण लॉजिक डेवलपमेंट टूल माना जाता है क्योंकि यह समस्या विश्लेषण, प्रोग्राम डिजाइन, डिबगिंग तथा डेवलपर्स के बीच संचार को सरल बनाता है।

Common Symbols Used in Flowchart फ्लोचार्ट में प्रयुक्त सामान्य प्रतीक

Different symbols are used in flowcharts to represent different operations.

फ्लोचार्ट में विभिन्न कार्यों को प्रदर्शित करने के लिए अलग-अलग प्रतीकों का उपयोग किया जाता है।

1.) Oval or Ellipse for Start and Stop (प्रारंभ और अंत हेतु ) The Oval symbol represents Start or Stop of the program. Oval प्रतीक प्रोग्राम के प्रारंभ और समाप्ति को दर्शाता है। 







2.) Parallelogram for Input / Output operation (इनपुट और आउटपुट के लिए) The Parallelogram symbol is used for Input and Output operations. Parallelogram प्रतीक इनपुट एवं आउटपुट के लिए उपयोग किया जाता है। 






3.) Rectangle for  Process or Calculation (गणना के लिए) Rectangle represents processing or calculation steps. Rectangle प्रोसेसिंग या गणना को दर्शाता है 







4.) Diamond box for Decision making (चयन प्रक्रिया हेतु ) Diamond symbol is used for decision making or conditions. Diamond प्रतीक निर्णय या कंडीशन के लिए उपयोग किया जाता है।






5.) Circle as a Connector (कनेक्टर के रूप में )





6.) Arrow for direction flow (top to bottom) (दिशा के लिए ऊपर से निचे की ओर) Arrows are used to show the direction of program execution. तीरों का उपयोग प्रोग्राम के कार्य प्रवाह की दिशा दिखाने के लिए किया जाता है।







Characteristics of a good flowchart एक अच्छे फ्लोचार्ट की विशेषताए 

  1. Flowcharts are better way of communicating the logic of a system.
  2. With the help of flowchart, problem can be analyzed in more easy and effective way.
  3. Flowcharts are easily prepared in program documentation.
  4. We can easily debug problems in any part of flowchart.
  1. फ्लोचार्ट अल्गोरिथम की तुलना में किसी सिस्टम के लॉजिक को दर्शाने का एक अच्छा तरीका है।
  2. फ्लोचार्ट की सहायता से किसी समस्या को आसानी से एवं स्पष्टता से समझा जा सकता है।
  3. फ्लोचार्ट को आसानी से डॉक्यूमेंटेशन में बनाया जा सकता है।
  4. फ्लोचार्ट के किसी भी भाग में त्रुटी सुधार करना आसान होता है।      

Limitations of Flowchart फ्लोचार्ट की सीमाये

  1. When the program logic is complicated then flowchart becomes complex and clumsy.
  2. If modification is required then we need to redraw flowchart completely.
  1. जब प्रोग्राम का लॉजिक जटिल होता है तब उसका फ्लोचार्ट भी जटिल एवं समझने में कठिन होता है।
  2.  यदि फ्लोचार्ट में कुछ परिवर्तन करना हो तब सम्पूर्ण फ्लोचार्ट पुन: तैयार करना होता है ।

Example -

1.) flowchart for simple interest



2.) flowchart for largest among three numbers.











Working Process of Flowchart फ्लोचार्ट की कार्य प्रक्रिया

The flowchart starts with the Start symbol. After that, input values are accepted, calculations or processing are performed, conditions are checked if required, and finally output is displayed before the program stops.

फ्लोचार्ट की शुरुआत Start प्रतीक से होती है। इसके बाद इनपुट लिया जाता है, गणना या प्रोसेसिंग की जाती है, आवश्यकता होने पर कंडीशन की जाँच की जाती है और अंत में आउटपुट प्रदर्शित कर प्रोग्राम समाप्त किया जाता है।

For example, in an even-odd number flowchart, the program first takes a number as input, checks whether the number is divisible by 2, and then displays Even or Odd accordingly.

उदाहरण के लिए सम-विषम संख्या फ्लोचार्ट में प्रोग्राम पहले संख्या इनपुट करता है, फिर जाँचता है कि संख्या 2 से विभाजित होती है या नहीं, और उसके अनुसार Even या Odd प्रदर्शित करता है।


Advantages of Flowchart फ्लोचार्ट के लाभ

Flowcharts improve program understanding and make complex logic easier to visualize. They simplify debugging, testing, and maintenance of software systems. Flowcharts also help beginners learn programming logic more effectively.

फ्लोचार्ट प्रोग्राम को समझने में सहायता करते हैं तथा जटिल लॉजिक को सरल रूप में प्रदर्शित करते हैं। यह डिबगिंग, टेस्टिंग तथा सॉफ्टवेयर मेंटेनेंस को आसान बनाते हैं। फ्लोचार्ट शुरुआती विद्यार्थियों को प्रोग्रामिंग लॉजिक सीखने में भी सहायता करते हैं।

Flowcharts are widely used in software development, system analysis, business process design, and educational programming.

फ्लोचार्ट का उपयोग सॉफ्टवेयर विकास, सिस्टम विश्लेषण, बिजनेस प्रोसेस डिजाइन तथा शैक्षणिक प्रोग्रामिंग में व्यापक रूप से किया जाता है।

Next Topic:- History and Evolution of C Language

Algorithm in Programming प्रोग्रामिंग में अल्गोरिथम

An algorithm is a logical step-by-step procedure used to solve a problem. It is considered one of the most important logic development tools in computer programming. An algorithm describes the complete solution of a problem in a systematic manner before actual coding begins.

अल्गोरिथम किसी समस्या को हल करने के लिए प्रयुक्त एक क्रमबद्ध एवं तार्किक प्रक्रिया होती है। इसे कंप्यूटर प्रोग्रामिंग का एक महत्वपूर्ण लॉजिक डेवलपमेंट टूल माना जाता है। अल्गोरिथम किसी समस्या के समाधान को वास्तविक कोडिंग शुरू होने से पहले व्यवस्थित रूप से प्रस्तुत करता है।

Algorithms are used in calculation, data processing, reasoning, decision making, searching, sorting, and many other computer operations. They help programmers understand the logic of the program clearly and reduce programming errors.

अल्गोरिथम का उपयोग कैलकुलेशन, डाटा प्रोसेसिंग, रीजनिंग, निर्णय लेने, सर्चिंग, सॉर्टिंग तथा अन्य कंप्यूटर कार्यों में किया जाता है। यह प्रोग्रामर को प्रोग्राम की लॉजिक को स्पष्ट रूप से समझने में सहायता करता है तथा प्रोग्रामिंग त्रुटियों को कम करता है।

Three important reasons for using algorithms are efficiency, abstraction, and reusability. Algorithms make programs faster, easier to understand, and reusable in different applications.

अल्गोरिथम का उपयोग करने के तीन महत्वपूर्ण कारण कार्यक्षमता, सारगर्भिता तथा पुनः उपयोगिता हैं। यह प्रोग्राम को तेज, समझने में आसान तथा विभिन्न एप्लिकेशन में पुनः उपयोग योग्य बनाता है।


Characteristics of a Good Algorithm एक अच्छी अल्गोरिथम की विशेषताएँ

A good algorithm should contain a finite number of steps and every step must be properly defined. It should accept zero or more inputs and produce one or more outputs. An algorithm must not execute infinitely and should finish within a reasonable amount of time.

एक अच्छी अल्गोरिथम में सीमित संख्या में स्टेप्स होने चाहिए तथा प्रत्येक स्टेप स्पष्ट रूप से परिभाषित होना चाहिए। यह शून्य या अधिक इनपुट स्वीकार कर सकती है तथा एक या अधिक आउटपुट प्रदान करती है। अल्गोरिथम अनंत समय तक नहीं चलनी चाहिए और उचित समय में समाप्त हो जानी चाहिए।

The order of statements inside the algorithm should remain fixed because changing the sequence may produce incorrect results.

अल्गोरिथम में स्टेटमेंट्स का क्रम निश्चित होना चाहिए क्योंकि क्रम बदलने पर गलत परिणाम प्राप्त हो सकते हैं।


Working Process of Algorithm अल्गोरिथम की कार्य प्रक्रिया

The working process of an algorithm starts with identifying the problem. After that, inputs and outputs are determined, logical steps are prepared, calculations are performed, and finally the required result is displayed.

अल्गोरिथम की कार्य प्रक्रिया समस्या की पहचान से शुरू होती है। इसके बाद इनपुट और आउटपुट निर्धारित किए जाते हैं, तार्किक स्टेप्स तैयार किए जाते हैं, गणना की जाती है और अंत में आवश्यक परिणाम प्रदर्शित किया जाता है।

For example, in a simple interest problem, the algorithm first accepts principal, rate, and time values, then calculates interest using a formula, and finally displays the result.

उदाहरण के लिए साधारण ब्याज समस्या में अल्गोरिथम पहले मूलधन, दर और समय लेती है, फिर फार्मूला की सहायता से ब्याज की गणना करती है और अंत में परिणाम प्रदर्शित करती है।


Algorithm for Simple Interest साधारण ब्याज के लिए अल्गोरिथम

  1. Start

  2. Input principal (P), rate (R), and time (T)

  3. Calculate SI = (P × R × T) / 100

  4. Display SI

  5. Stop


Algorithm for Greatest Among Three Numbers तीन संख्याओं में सबसे बड़ी संख्या ज्ञात करने की अल्गोरिथम

  1. Start

  2. Input A, B, C

  3. If A > B and A > C, print A is greatest

  4. Else if B > C, print B is greatest

  5. Else print C is greatest

  6. Stop

Algorithms are widely used in software development because they simplify complex problems and improve program efficiency.

सॉफ्टवेयर विकास में अल्गोरिथम का व्यापक उपयोग किया जाता है क्योंकि यह जटिल समस्याओं को सरल बनाती है तथा प्रोग्राम की कार्यक्षमता को बेहतर करती है।

Next Topic: Flowchart in Programming प्रोग्रामिंग में फ्लोचार्ट

C Program to Calculate Simple Interest with Output, Simple Interest Program in C Language

Simple Interest is one of the most common mathematical calculations used in banking, finance, education, and accounting systems. In C langua...