+ 1

Write a C program to read the principal. Rate of interest now of year & find out the simple interest.

Simple Interest

16th Sep 2018, 12:00 AM
ANJALI YADAV
2 odpowiedzi
+ 2
#include <stdio.h>   void main() { float principal_amt, rate, simple_interest; int time;   printf("Enter the values of principal_amt, rate and time \n"); scanf("%f %f %d", &principal_amt, &rate, &time); simple_interest = (principal_amt * rate * time) / 100.0; printf("Amount = Rs. %5.2f\n", principal_amt); printf("Rate = Rs. %5.2f%\n", rate); printf("Time = %d years\n", time); printf("Simple interest = %5.2f\n", simple_interest); }
11th Aug 2019, 4:13 PM
Ankit Yadav
Ankit Yadav - avatar
+ 1
Thanks
2nd Nov 2019, 5:42 AM
ANJALI YADAV