using System;
using System.Collections.Generic;
using System.Text;
namespace largest_loop
{
class program
{
static void Main(string[]args)
{
int ctr, nNum1, max=0;
for (ctr=0; ctr<=9; ctr++)
{
Console.WriteLine("Enter the numbers"+(chr+1));
nNum1 = Console.ToInt32(Console.ReadLine());
if (nNum1>max)
max=nNum1;
}
Console.WriteLine(max);
Console.ReadLine();
}
}
}
No comments:
Post a Comment