Computer Science, asked by abhinav779069, 2 months ago

c) Write a program to find the simple interest where the principal, rate and time are given.


plzz help​

Answers

Answered by guruprasath22
4

Explanation:

JAVA

public class Main.

{

public static void main (String args[])

{ float p, r, t, si; // principal amount, rate, time and simple interest respectively.

p = 13000; r = 12; t = 2;

si = (p*r*t)/100;

System.out.println("Simple Interest is: " +si);

}}

Answered by candice53
0

Answer:

The C Program calculates the simple interest given the principal amount, rate of interest and time. The formula to calculate the simple interest is: simple_interest = (p * t * r) / 100 where p is principal amount, t is time & r is rate of interest.

In this C program, we are reading the value for principal_amt, rate and time using the ‘principal_amt’, ‘rate’ and ‘time’ variables respectively.

Hope this helps. Mark as brainliest.

Similar questions