Posts

Showing posts with the label C Language Tutorial Hindi English

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

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 से मिलकर बना होता है: Include Section Global Constants and Macro Section Function Declaration Section Main Functi...