Skip to content

Instantly share code, notes, and snippets.

View DK070202's full-sized avatar
🎯
Focusing

Dhruvin DK070202

🎯
Focusing
View GitHub Profile
@DK070202
DK070202 / main.dart
Created January 17, 2024 12:38
crimson-echo-1254
import 'dart:math';
int calculateMaturityValue(double P, double i, int n) {
double compoundInterest = ((pow(1 + i, n) - 1) / i) * (1 + i);
double M = P * compoundInterest;
return M.round();
}
void main() {
double principalAmount = 1000; // Amount
@DK070202
DK070202 / main.dart
Created April 24, 2023 06:41
resonating-cliff-5116
void main() {
final map = {};
final messageId = map.keys.first;
print(messageId);
}