Created
August 30, 2021 15:38
-
-
Save PreyeaRegmi/9083d5e50f1da5e5bd85348ce6ad42b3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class EMICalculator { | |
final double amount, rate, time; | |
EMICalculator(this.amount, this.rate, this.time); | |
double calculateEMI() | |
{ | |
return amount*rate*(1 + rate)*time/((1+rate)*time-1); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment