Computer Science, asked by Jiyang6581, 1 year ago

Write a program to obtain principal amount rate of interest and time from user and compute simple interest

Answers

Answered by visakhanandan911
24

Answer:

p=int(input("enter principle amount : "))      

t= int(input("enter time : "))      

r= int(input("enterrate of interest : "))

print("simple interest = ",p*r*t/100)

Explanation:

Answered by joshiabhinav074
0

Answer:

#a phyton program

a=int(input("enter the amount"))

p=int(input("enter the principal"))

r=int(input("enter the rate of interest"))

t=int(input("enter the time"))

print("simple interest=",(a-p))

# a Java program

import java.util.*;

class Si

{

public static void main(String args[])

{

Scanner sc=new Scanner(System.in());

int a,p,r,t;

print(" enter amount\nprincipal\nrate of interest\ntime");

a=sc.nextInt();

p=sc.nextInt();

r=sc.nextInt();

t=sc.nextInt();

System.out.println("simple interest="+(a-p));

}

}

#a c++ and c program

#include<iostream.h>

#include<conio.h>

void main()

{

clrscr();

int a,p,r,t;

count<<"enter amount\nprincipal\nrate of interest\ntime"<<;

cin>>a>>p>>r>>t>>;

count<<"simple interest="<<(a-p)<<;

getch();

}

thank you

Explanation:

Similar questions