Posts

Showing posts with the label Basic Programs in C Language

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