Posts

Showing posts with the label Basic C Programs

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 एल्गोरिथ्म Start the program Declare variables p, r, t, and si Input principal, rate, and time Calculate simple interest using formula Display the result Stop the program C Progra...

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 ज्ञात ...