﻿//Problem 9.	Play with Int, Double and String
//Write a program that, depending on the user’s choice, inputs an int, double or string variable. 
//If the variable is int or double, the program increases it by one. If the variable is a string, the program appends "*" at the end. Print the result at the console. 
//Use switch statement. Example:

using System;
class PlayWithIntDoubleAndString
{
    static void Main()
    {
        Console.Write("Write a number between 1, 2, 3: ");
        int number = int.Parse(Console.ReadLine());
        switch (number)
        {
            case 1: Console.Write("Please enter an integer: ");
                int integerNum = int.Parse(Console.ReadLine());
                integerNum = integerNum + 1;
                Console.WriteLine(integerNum);
                break;
            case 2: Console.Write("Please enter an double: ");
                double doubleNum = double.Parse(Console.ReadLine());
                doubleNum = doubleNum + 1;
                Console.WriteLine(doubleNum);
                break;
            case 3: Console.Write("Please enter an string: ");
                string stringText = Console.ReadLine();
                Console.WriteLine(stringText + "*");
                break;

            default: Console.WriteLine("Invalid number");
                break;
        }
    }
}

