Tuesday, 1 December 2020

Write a Program in C++ to Calculate Simple Interest by taking input from the User.

 #include<iostream>

using namespace std;

int main()

{

        double SI,P,R,T;

        cout<<"Enter The Principal, Rate and Time\n";

        cin>>P>> R>>T;

        SI=(P*R*T)/100.0;

        cout<<"The Simple Interest= "<<SI;

}

No comments:

Post a Comment

Java Program to count the total number of characters in a string

 //Java Program to count the total number of characters in a string import java.util.*; public class CountChars {     public static void mai...