Write a program to calculate simple interest
Program:
#include<stdio.h> #include<conio.h> void main() { float amt,rate,time,si; printf("Enter the amount:"); scanf("%f",&amt); printf("Enter the rate:"); scanf("%f",&rate); printf("Enter the time:"); scanf("%f",&time); si=(amt*rate*time/100); printf("\nSimple interest= %f",si); getch(); }
Output:
Enter the amount: 1o 0 Enter the rate: 4 Enter the time: 7 Simple interest= 2.800000
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Program:
Output:
need an explanation for this answer? contact us directly to get an explanation for this answer