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 की मजबूत नींव तैयार करता है।

No comments:

Post a Comment

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...