Computer Science, asked by sanatan44, 9 months ago

Wap to assign the value
for principal, date and time
and calculate simple Interest
and amount​

Answers

Answered by sswaraj04
1

Answer:

#include<iostream>

using namespace std;

int main()

{

int p,r,t;

float i;

cout<<"Enter Principle : ";

cin>>p;

cout<<"Enter Rate : ";

cin>>r;

cout<<"Enter Time : ";

cin>>t;

i=(float)(p*r*t)/100;

cout<<"Simple interest is : Rs."<<i;

return 0;

}

Explanation:

Hope it helps :-)

Answered by neelrambhia03
1

Answer:

//Program in Java to find SI

import java.util.*;

class SI

{

public static void main(String Args[])

{

Scanner s = new Scanner(System.in);

int p,n,r;

double si,a,b;

System.out.print("Enter the principle, rate and time");

p = s.nextInt();

r = s.nextInt();

n = s.nextInt();

si = (double) p*n*r/100;

b = (double) p;

a = si + p;

System.out.println("SI =" + si + "Amount =" + a);

}

}

Hope this helps you.

Similar questions