Posts

Showing posts with the label C Program with Output

C Program to Find ASCII Value of a Character with Output किसी अक्षर की ASCII Value ज्ञात करने हेतु सी प्रोग्राम

ASCII stands for American Standard Code for Information Interchange. It is a standard character encoding system used in computers to represent characters, numbers, and symbols using numeric values. ASCII का पूर्ण रूप American Standard Code for Information Interchange है। यह एक standard character encoding system है जिसका उपयोग computers में characters, numbers तथा symbols को numeric values के रूप में दर्शाने के लिए किया जाता है। Every character in the keyboard has a unique ASCII value. For example: Keyboard के प्रत्येक character की एक unique ASCII value होती है। उदाहरण: A = 65, B = 66, ..., Z = 90 a = 97, b = 98, ..., z = 122 0 = 48, 1 =49, ..., 9=57 In C language, characters are internally stored as integer ASCII values, therefore we can easily print the ASCII value of a character using format specifiers. C language में characters internally integer ASCII values के रूप में store होते हैं, इसलिए हम format specifiers की सहायता से किसी character का ASCII value आसानी से print कर सकते हैं। ...

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