Skip to content

Instantly share code, notes, and snippets.

@PreyeaRegmi
Created August 30, 2021 15:38
Show Gist options
  • Save PreyeaRegmi/9083d5e50f1da5e5bd85348ce6ad42b3 to your computer and use it in GitHub Desktop.
Save PreyeaRegmi/9083d5e50f1da5e5bd85348ce6ad42b3 to your computer and use it in GitHub Desktop.
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