---
title: "How to create a simple console base program in C# ?"  
description: "How to create a simple console base program in C# ?"  
author: "Gurmeet Kaur"  
published: 2018-09-07  
canonical: https://answers.mindstick.com/qa/49673/how-to-create-a-simple-console-base-program-in-c-sharp  
category: "programming"  
tags: ["c#"]  
reading_time: 2 minutes  

---

# How to create a simple console base program in C# ?

Any Type of [Program](https://www.mindstick.com/blog/12337/scaling-up-your-mentorship-program)

## Answers

### Answer by Sanat Shukla

![How to create a simple console base program in C# ?](https://answers.mindstick.com/questionanswer/ecb814ef-3d49-4d55-8922-b980770663c7/images/4dbba5ba-884b-4fb0-b247-1f88458f0998.png)

![How to create a simple console base program in C# ?](https://answers.mindstick.com/questionanswer/ecb814ef-3d49-4d55-8922-b980770663c7/images/70d3ffaa-96ed-4f90-8fcb-6803a4383369.png)

```
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication4
{
    class Program
    {
        static void Main(string[] args)
        {
            float height;
            Console.WriteLine("Enter Your Height (in centimeters) \n");
            height = int.Parse(Console.ReadLine());
            if (height < 150.0)
                Console.WriteLine("Small(Dwarf) \n");
            else if ((height >= 150.0) && (height <= 165.0))
                Console.WriteLine(" Average Height \n");
            else if ((height >= 165.0) && (height <= 195.0))
                Console.WriteLine("Taller \n");
            else
                Console.WriteLine("Abnormal height \n");
        }
    }
}
```

\


---

Original Source: https://answers.mindstick.com/qa/49673/how-to-create-a-simple-console-base-program-in-c-sharp

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
