Skip to content

Instantly share code, notes, and snippets.

@damoahdominic
Created February 14, 2018 11:04
Show Gist options
  • Save damoahdominic/ea8eae329a58f1f99d8602f96178b3ea to your computer and use it in GitHub Desktop.
Save damoahdominic/ea8eae329a58f1f99d8602f96178b3ea to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
while(true){
Console.WriteLine("\nWelcome to my Pharmacy management system\n1. Press ONE(1) to Buy a Drug\n2. Press TWO(2) to View Drug prices\n3. Press 3 to exit\n Your Input: --> ");
string input = Console.ReadLine();
int a = Convert.ToInt32(input);
switch (a)
{
case 1:
// call a function to buying drugs
buy_drug();
break;
case 2:
view_drug();
break;
case 3:
Environment.Exit(0);
break;
default:
break;
}
Console.ReadLine();
}
}
private static void view_drug()
{
Console.WriteLine("This is where your guys will code the viewing drugs");
}
private static void buy_drug()
{
Console.WriteLine("This is where your guys will code the buying drugs");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment