Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
stockSeries
//Rextester.Program.Main is the entry point for your code. Don't change it. //Microsoft (R) Visual C# Compiler version 2.9.0.63208 (958f2354) using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { //Your code goes here double val = 21100; int p = 10; double lowerval=0; for(int i=10;i>0;i--) { lowerval = val+(val*i/100); Console.WriteLine( $"{lowerval}\t{lowerval-val}\t{i}%" ); } for(int i=1;i<=p;i++) { lowerval = val-(val*i/100); Console.WriteLine( $"{lowerval}\t{val -lowerval}\t-{i}%" ); } } } }
run
|
edit
|
history
|
help
0
default branch name
StringBuilder
11.10
Checking time span between two timezone times
Why do my posts keep getting deleted?
Find 20 business days prior to today's date c#
Server last restarted
hay
for (int i= 2 ; i==5 ; i++)
Selection sort