Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Bitcoins expectative :'v
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { float val = 2000000; float val_i = val; for(int i = 0; i < 30; i++) { val = val * 1.03f; Console.WriteLine("Day " + i + ": $" + val); } Console.WriteLine("Total earned in 30 days: $" + (val - val_i)); Console.WriteLine("%" + (((val - val_i) / val_i) * 100) + " from the initial investment: $" + val_i); } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Plt-D v.0.9
Learning linq 1
adxcsaxsd
3
C# simple fib solution
error2
ok
Abstract class by Derived class reference example
Pascal Tringle
Add char to non-numerical words only
Please log in to post a comment.