This article about From calculating simple interest in"Python tutorial in Hindi" contains the mathematical "Program example in python" and helps to learn Basic "python examples code" For beginning and advance level so that students can learn python "program code example easily" and understand the concept of python basic.
सभी आवश्यक मूल्यों को देखते हुए साधारण ब्याज की गणना करने के लिए यह पायथन प्रोग्राम है
कार्यक्रम सिद्धांत राशि, दर और समय को देखते हुए सरल ब्याज की गणना करता है।
1. सिद्धांत राशि, दर और समय के लिए मूल्यों में ले लो।
2. सूत्र का उपयोग करते हुए, सरल ब्याज की गणना करें।
3. गणना की गई ब्याज के लिए मूल्य प्रिंट करें।
4. बाहर निकलें।
यहां सभी आवश्यक मूल्यों को देखते हुए सरल ब्याज की गणना करने के लिए पायथन प्रोग्राम का स्रोत कोड है। कार्यक्रम का आउटपुट भी नीचे दिखाया गया है।
1. उपयोगकर्ता को सिद्धांत राशि, दर और समय के लिए मान दर्ज करना चाहिए।
2. सूत्र: (amount*time*rate)/100 का उपयोग साधारण ब्याज की गणना के लिए किया जाता है।
3. साधारण ब्याज बाद में मुद्रित किया जाता है।
Output
Programming example in python for calculating simple interest for given values
![]() |
python coding example |
सभी आवश्यक मूल्यों को देखते हुए साधारण ब्याज की गणना करने के लिए यह पायथन प्रोग्राम है
Problem Description in python example
कार्यक्रम सिद्धांत राशि, दर और समय को देखते हुए सरल ब्याज की गणना करता है।
Solution of Python program example
1. सिद्धांत राशि, दर और समय के लिए मूल्यों में ले लो।
2. सूत्र का उपयोग करते हुए, सरल ब्याज की गणना करें।
3. गणना की गई ब्याज के लिए मूल्य प्रिंट करें।
4. बाहर निकलें।
Source Code For Python Example Code
principle=float(input("Enter the principle amount:")) time=int(input("Enter the time(years):")) rate=float(input("Enter the rate:")) simple_interest=(principle*time*rate)/100 print("The simple interest is:",simple_interest)
यहां सभी आवश्यक मूल्यों को देखते हुए सरल ब्याज की गणना करने के लिए पायथन प्रोग्राम का स्रोत कोड है। कार्यक्रम का आउटपुट भी नीचे दिखाया गया है।
Python program example explanation
1. उपयोगकर्ता को सिद्धांत राशि, दर और समय के लिए मान दर्ज करना चाहिए।
2. सूत्र: (amount*time*rate)/100 का उपयोग साधारण ब्याज की गणना के लिए किया जाता है।
3. साधारण ब्याज बाद में मुद्रित किया जाता है।
Output
Case 1: Enter the principle amount:200 Enter the time(years):5 Enter the rate:5.0 The simple interest is: 50.0 Case 2: Enter the principle amount:70000 Enter the time(years):1 Enter the rate:4.0 The simple interest is: 2800.0
0 Comments:
Post a Comment