C Program to calculate simple interest

in Steem Sri Lanka5 days ago

Image cover

Dear friends, I hope everyone is well today, I am sharing with you all a C program for calculating simple interest. How do you calculate simple interest? I have come up with a program through programming, I have created it and run it with you and shown the results by giving input. If you want, you can try this program in this way and I am giving the program below this article, you can copy it from here and see it.

#include <stdio.h>
int main() {
float principal, rate, time, interest;
printf("Enter principal, rate, time: ");
scanf("%f %f %f", &principal, &rate, &time);
interest = (principal * rate * time) / 100;
printf("Simple Interest = %.2f\n", interest);
return 0;
}

If anyone has any questions, please let me know in the comments, and I would like to express my sincere wishes and congratulations to all who visited my post. May everyone be well and healthy.

IPFS Video

Posted with Speem

Sort:  

Your post have been rewarded by the Speak on Steem curator team!

Now become a plus member delegating at least 500 SP

Ways to support us:

Image

Curated by @alejos7ven

Speak On Steem GIF.gif

Hi friend

#play

Image

Speem Video Watcher Team @carli24

High-Yield Curation by @steem-seven

Your content has been supported!


Maximize your passive income!
Delegate your SP to us and earn up to 0.45 STEEM / 1000 SP.

Click here to see our Tiered Reward System

Vote Proposal 100Vote Witness @seven.witMeet Speak on Steem

We are the hope!

S7VEN Banner

Coin Marketplace

STEEM 0.06
TRX 0.31
JST 0.061
BTC 67744.77
ETH 2091.48
USDT 1.00
SBD 0.50