﻿using System;
using System.Linq;

namespace PlayWithVariables
{
    class Program
    {
        static void Main()
        {
            Console.WriteLine("Please choose a type:");
            Console.WriteLine("1. --> int");
            Console.WriteLine("2. --> double");
            Console.WriteLine("3. --> string");

            int choice = int.Parse(Console.ReadLine());

            switch (choice)
            {
                case 1:
                    Console.Write("Please enter a number: ");
                    int number = int.Parse(Console.ReadLine());
                    Console.WriteLine(number + 1);
                    break;
                case 2:
                    Console.Write("Please enter a number: ");
                    double floatNumber = double.Parse(Console.ReadLine());
                    Console.WriteLine(floatNumber + 1);
                    break;
                case 3:
                    Console.Write("Please enter a string: ");
                    string str = Console.ReadLine();
                    Console.WriteLine(str + "*");
                    break;
                default: Console.WriteLine("Invalid choice!");
                    break;
            }
        }
    }
}
