From 2b67035f838a747e343d434ae9bcfbae9ea1355a Mon Sep 17 00:00:00 2001 From: hanya98 Date: Tue, 7 Oct 2025 23:46:15 +0530 Subject: [PATCH] Create calculate the simple interest using c++ calculate the simple interest by taking principle amount,time period,rate of interest using c++ Signed-off-by: hanya98 --- calculate the simple interest using c++ | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 calculate the simple interest using c++ diff --git a/calculate the simple interest using c++ b/calculate the simple interest using c++ new file mode 100644 index 0000000..4222375 --- /dev/null +++ b/calculate the simple interest using c++ @@ -0,0 +1,15 @@ +#include +using namespace std; +int main(){ +//simple interest + float p,r,t; + cout<<"enter the principle amount"<>p; + cout<<"enter the rate of interest"<>r; + cout<<"enter the time period in years"<>t; + cout<<"the simple interest is "<<(p*r*t)/100<