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
dxcsdfcsasxd
Reference vs Value types (aka Classes vs Structs) in C#
(Sort)Rounding Magic - C#
LINQ
Operadores
work_laba#2
ADSA - Tuto 1 - Exo4 - b - Proposition d'algo en O(n)
asxsdf
yarirey
lasses, properties, methods, ling begining