Machine Problem

Write a C# program to find the largest of three numbers.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Program Listing

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


/*

Jake Rodriguez Pomperada, MAED-IT, MIT
www.jakerpomperada.blogspot.com and www.jakerpomperada.com
jakerpomperada@gmail.com
Bacolod City, Negros Occidental

Machine Problem

Write a C# program to find the largest of three numbers.
 */
namespace Biggest_Three_Numbers
{
    class Program
    {
        static void Main(string[] args)
        {

            int num1=0, num2=0, num3=0;
            string result;

            Console.WriteLine("\n");
            Console.WriteLine("============================================");
            Console.WriteLine("\tBiggest of Three Numbers in C#");
            Console.WriteLine("=============================================");

            Console.WriteLine();
            Console.Write("Enter first number : ");
            num1 = Convert.ToInt32(Console.ReadLine());
            Console.Write("Enter the second number : ");
            num2 = Convert.ToInt32(Console.ReadLine());
            Console.Write("Enter the third number : ");
            num3 = Convert.ToInt32(Console.ReadLine());

            Console.WriteLine();

            if (num1 > num2 && num1 > num3)
            {
                result = "The " + num1  +  " Number is the greatest among three. \n";

            }
            else if (num2 > num1 && num2 > num3)
            {
                result = "The " + num2 + " Number is the greatest among three. \n";
            }
            else
            {
                result = "The " + num3 + " Number is the greatest among three. \n";
            }

            Console.WriteLine(result);
            Console.WriteLine();
            Console.WriteLine("\tEnd of Program");
            Console.ReadLine();


        }
    }
}

Leave a Reply

Your email address will not be published. Required fields are marked *