Advertisement
Gaztoof

Untitled

Aug 2nd, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Threading;
  7.  
  8. namespace crypto
  9. {
  10. class Program
  11. {
  12. static void Main(string[] args)
  13. {
  14. start:
  15. try
  16. {
  17. Console.BackgroundColor = ConsoleColor.Blue;
  18. Console.Clear();
  19. Console.ForegroundColor = ConsoleColor.White;
  20. double moneyvalue = 0.169413;
  21. Console.WriteLine("Here's the cryptocurrency's value : " + moneyvalue + " $");
  22. Console.WriteLine("Use the command \"setprice\", \"showprice\", and \"setcoin\"");
  23. string readline1 = Console.ReadLine();
  24.  
  25. if (readline1 == "setprice")
  26. {
  27. Console.WriteLine("How big do you want the coin to be in dollars?");
  28. string setpriceread = Console.ReadLine();
  29. double setpricereads = Convert.ToDouble(setpriceread);
  30. moneyvalue = setpricereads;
  31. Console.WriteLine("The new COIN's price is " + moneyvalue + " $");
  32. }
  33.  
  34. else if (readline1 == "showprice")
  35. {
  36. Console.WriteLine("The current coin's value in dollars is " + moneyvalue + " $");
  37. }
  38. else if (readline1 == "setcoin")
  39. {
  40.  
  41. }
  42. else if (readline1 != "setcoin" | "showprice" | "setprice")
  43. {
  44.  
  45. }
  46. Console.WriteLine("Press any key to continue...");
  47. Console.ReadKey();
  48. goto start;
  49. }
  50. catch
  51. {
  52. Console.WriteLine("There was an error!");
  53. }
  54.  
  55. }
  56. }
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement