Header Ads

Header ADS

Write a C program to enter P, T, R and calculate 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); SI = (principle * time * rate) / 100; printf("Simple Interest = %f", SI); return 0; }

No comments

Powered by Blogger.