How to calculate simple interest in C

1 Answer

0 votes
#include <stdio.h>

int main()
{
    float PrincipalAmount = 30000, Rate = 4, Years = 3;

    float SimpleInterest = (PrincipalAmount * Rate * Years) / 100;

    printf("Simple Interest is : %.2f", SimpleInterest);

    return 0;
}




/*
run:

Simple Interest is : 3600.00

*/



 



answered Nov 14, 2022 by avibootz

Related questions

1 answer 131 views
131 views asked Nov 15, 2022 by avibootz
1 answer 60 views
1 answer 73 views
1 answer 113 views
113 views asked Oct 26, 2024 by avibootz
1 answer 141 views
141 views asked Nov 15, 2022 by avibootz
1 answer 139 views
139 views asked Nov 15, 2022 by avibootz
2 answers 160 views
...