Translate

Thursday 18 September 2014

3.Write a program to display the highest of any 10 numbers entered. (Duration: 30 min)

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

namespace highest_among_10_numbers
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] array=new int[10];
            int i,t;
            Console.WriteLine("Enter the 10 numbers:");
            for (i = 0; i < 10; i++)
            {
                array[i] = Convert.ToInt16(Console.ReadLine());
            }
            Console.WriteLine("Greatest number :");
            for (i = 0; i < 10; i++)
            {

            }
        }
    }
}

No comments:

Post a Comment