Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Threading;
- namespace crypto
- {
- class Program
- {
- static void Main(string[] args)
- {
- start:
- try
- {
- Console.Title = "Gaztoof Cryptocurrency Management Tool";
- Console.BackgroundColor = ConsoleColor.Blue;
- Console.Clear();
- Console.ForegroundColor = ConsoleColor.White;
- double moneyvalue = 0.169413;
- var investors = 1;
- Console.WriteLine("Here's the cryptocurrency's value : " + moneyvalue + " $");
- Console.WriteLine("There is " + investors + " happy investors!");
- Console.WriteLine("Use the command \"setprice\", \"showprice\", and \"setcoin\"");
- string readline1 = Console.ReadLine();
- if (readline1 == "setprice")
- {
- Console.WriteLine("How big do you want the coin to be in dollars?");
- string setpriceread = Console.ReadLine();
- double setpricereads = Convert.ToDouble(setpriceread);
- moneyvalue = setpricereads;
- Console.WriteLine("The new COIN's price is " + moneyvalue + " $");
- }
- else if (readline1 == "showprice")
- {
- Console.WriteLine("The current coin's value in dollars is " + moneyvalue + " $");
- }
- else if (readline1 == "setcoin")
- {
- Console.WriteLine("How many people possess coins?");
- var people = Console.ReadLine();
- Console.WriteLine("Alright, quantity changed! The new number is " + people + " happy investors!");
- int peoples = Convert.ToInt32(people);
- investors = peoples;
- }
- else if (readline1 == "setcoin"|"showprice"|"setprice")
- {
- Console.WriteLine("There was an error!");
- }
- Console.WriteLine("Press any key to continue...");
- Console.ReadKey();
- goto start;
- }
- catch
- {
- Console.WriteLine("There was an error!");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement