Advertisement
Gaztoof

Untitled

Aug 2nd, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 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.Title = "Gaztoof Cryptocurrency Management Tool";
  18. Console.BackgroundColor = ConsoleColor.Blue;
  19. Console.Clear();
  20. Console.ForegroundColor = ConsoleColor.White;
  21. double moneyvalue = 0.169413;
  22. var investors = 1;
  23. Console.WriteLine("Here's the cryptocurrency's value : " + moneyvalue + " $");
  24. Console.WriteLine("There is " + investors + " happy investors!");
  25. Console.WriteLine("Use the command \"setprice\", \"showprice\", and \"setcoin\"");
  26. string readline1 = Console.ReadLine();
  27.  
  28. if (readline1 == "setprice")
  29. {
  30. Console.WriteLine("How big do you want the coin to be in dollars?");
  31. string setpriceread = Console.ReadLine();
  32. double setpricereads = Convert.ToDouble(setpriceread);
  33. moneyvalue = setpricereads;
  34. Console.WriteLine("The new COIN's price is " + moneyvalue + " $");
  35. }
  36.  
  37. else if (readline1 == "showprice")
  38. {
  39. Console.WriteLine("The current coin's value in dollars is " + moneyvalue + " $");
  40. }
  41. else if (readline1 == "setcoin")
  42. {
  43. Console.WriteLine("How many people possess coins?");
  44. var people = Console.ReadLine();
  45. Console.WriteLine("Alright, quantity changed! The new number is " + people + " happy investors!");
  46. int peoples = Convert.ToInt32(people);
  47. investors = peoples;
  48.  
  49. }
  50. else if (readline1 == "setcoin"|"showprice"|"setprice")
  51. {
  52. Console.WriteLine("There was an error!");
  53. }
  54. Console.WriteLine("Press any key to continue...");
  55. Console.ReadKey();
  56. goto start;
  57. }
  58. catch
  59. {
  60. Console.WriteLine("There was an error!");
  61. }
  62.  
  63. }
  64. }
  65. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement