Computer Science, asked by anshumapeter, 1 year ago

can you ans. the first one...​

Attachments:

Answers

Answered by dizzyramen
1

Answer:

print("Enter principal amount")

p = int(input())

print("Enter rate of interest")

r = int(input())

print("Enter time")

t = int(input())

si = (p*r*t)/100

print("Simple interest is", si)

Explanation:

print("something") - prints a something to console; "something" is a string

input() - takes input from user; by default input is of type string so we type cast it to integer int(input())

i hope you understood this!

Similar questions