whenever i'm entering 1, 2 or 3 digit numbers it just give me one output,
i don't know what's wrong..
here's is my code.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Balance
{
    class Program
    {
        static void Main(string[] args)
        {
             int num1, num2, num3, num4, num5 = 0;
            int  categoryA =20000;
            int  categoryB = 75000;
            int  categoryC = 5000;
            int  categoryB1 = 60000;
            int x = 0;
            x = num5;

            Console.WriteLine("Please enter 5 numbers: ");
            num1 = Int32.Parse(Console.ReadLine ());
            num2 = Int32.Parse(Console.ReadLine());
            num3 = Int32.Parse(Console.ReadLine());
            num4 = Int32.Parse(Console.ReadLine());
            num5 = Int32.Parse(Console.ReadLine());

                if (num1 >= categoryC)
                {
                    if (num1 <= categoryA)
                    {
                        Console.WriteLine("Category A");

                    }
                    else
                    {
                        if (num1 >= categoryB1)
                        {
                            if (num1 <= categoryB)
                            {
                                Console.WriteLine("Category B");
                            }
                            else
                            {
                                Console.WriteLine("Category C");
                            }
                        }
                        else
                        {
                            Console.WriteLine("Category C");
                        }

                    }

                    if (num2 >= categoryC)
                    {
                        if (num2 <= categoryA)
                        {
                            Console.WriteLine("Category A");
                        }
                        else
                        {
                            if (num2 >= categoryB1)
                            {
                                if (num2 <= categoryB)
                                {
                                    Console.WriteLine("Category B");
                                }
                                else
                                {
                                    Console.WriteLine("Category C");
                                }
                            }
                            else
                            {
                                Console.WriteLine("Category C");
                            }

                        }
                        if (num3 <= categoryA)
                        {
                            Console.WriteLine("Category A");
                        }
                        else
                        {
                            if (num3 >= categoryB1)
                            {
                                if (num3 <= categoryB)
                                {
                                    Console.WriteLine("Category B");
                                }
                                else
                                {
                                    Console.WriteLine("Category C");
                                }
                            }
                            else
                            {
                                Console.WriteLine("Category C");
                            }

                        }
                        if (num4 <= categoryA)
                        {
                            Console.WriteLine("Category A");
                        }
                        else
                        {
                            if (num4 >= categoryB1)
                            {
                                if (num4 <= categoryB)
                                {
                                    Console.WriteLine("Category B");
                                }
                                else
                                {
                                    Console.WriteLine("Category C");
                                }
                            }
                            else
                            {
                                Console.WriteLine("Category C");
                            }

                        }
                        if (num5 <= categoryA)
                        {
                            Console.WriteLine("Category A");
                        }
                        else
                        {
                            if (num5 >= categoryB1)
                            {
                                if (num5 <= categoryB)
                                {
                                    Console.WriteLine("Category B");
                                }
                                else
                                {
                                    Console.WriteLine("Category C");
                                }
                            }
                            else
                            {
                                Console.WriteLine("Category C");
                            }

                        }
                    }
                }
                else
                {
                    Console.WriteLine("category C");
                    Console.ReadKey();
                }


            Console.ReadKey();


        }
    }
}

example
1
99
999
9000
5000
output:
category A.
(then it stops there.)
there should be 5 categories that will be outputted. Thanks

Your num2, etc. are all under the first if condition in line 27.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.