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;
- namespace pivas
- {
- class Brewery {
- public void info() {
- }
- public Brewery (){
- }
- }
- class Beer:Brewery {
- string color;
- string filter;
- string nameofbeer;
- string bitternes;
- string alcohol;
- string timetodo;
- string timetodrink;
- struct ingredients {
- string yeats;//drojji
- string hop;//hmel'
- string malt;//solod
- string water;
- string sugar;
- }
- }
- class Person {
- struct name
- {
- string fname;//im`a
- string fathername;//ot4estvo
- string sname;//familia
- }
- struct register {
- string email;
- string nickname;
- string password1;
- string password2;
- }
- public Person() {
- }
- }
- class Buyer:Person {
- public Buyer() {
- }
- }
- class Worker
- {
- public Worker() {
- }
- }
- class Seller:Worker {
- public Seller() {
- }
- }
- class Administrator : Worker
- {
- public Administrator() {
- }
- }
- class Program
- {
- static void Main(string[] args)
- {
- int num;
- Console.WriteLine("Who are you?\nI'm:\n1. seller\n2. buyer\n3. administrator");
- num = Convert.ToInt32(Console.ReadLine());
- switch (num) {
- case 1:
- Console.WriteLine("Please sign in");
- Console.ReadLine();
- break;
- case 2:
- Console.WriteLine("Please sign in or sign up");
- break;
- case 3:
- Console.WriteLine("Please sign in");
- break;
- default:
- Console.WriteLine("Incorrect symbol");
- break;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement