fork(1) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. int fullPrice = 100;
  8. decimal discount = 0.1M;
  9. Int32 finalPrice = (int)(fullPrice * (1-discount));
  10. Console.WriteLine("The discounted price is ${0}.", finalPrice);
  11. }
  12. }
Success #stdin #stdout 0.04s 24216KB
stdin
Standard input is empty
stdout
The discounted price is $90.