Assignment
Title
Question
Assignment program for calculating simple interest
#include <stdio.h>
int main()
{
float principle, time, rate, SI;
printf("Enter principle amount: ");
scanf("%f", &principle);
printf("Enter time: ");
scanf("%f", &time);
printf("Enter rate: ");
scanf("%f", &rate);
/* Calculate simple interest */
SI = (principle * time * rate) / 100;
printf("Simple Interest = %f", SI);
return 0;
}
Haripriya,ECE department
IRTT
C-and-Cpp Tokens 01-02 min 10-20 sec
Answers:
Assignments are only for self-assessment. If you have any specific question related to this tutorial please post here.
Login to add comment