11 Sep PMCA Sunday 14:00 Python Homework 20.09.06.
Question 1:
Input a string and print the string 5 times
Sample program run ---------------------------- Enter a string: Apple AppleAppleAppleAppleApple Sample program run ---------------------------- Enter a string: Orange OrangeOrangeOrangeOrangeOrange
Question 2:
Write a program to find the simple interest for an amount (P) for the rate (R ) and for the number of years (Y).
The formula for the simple interest is
S = (P * R * Y)/100
Sample program run ---------------------------- Enter Amount: 100 Enter Rate: 10 Enter No of Year: 2 The Simple interest on the amount is 20 Sample program run ---------------------------- Enter Amount: 200 Enter Rate: 10 Enter No of Year: 2 The Simple interest on the amount is 40
Sorry, the comment form is closed at this time.