Sunday, May 24, 2009

Exercise

/* Custom Project and Libraries Copyright, 2006. Venkat, ISS */

using System;
using System.Collections.Generic;
using System.Text;
using ISS.RV.LIB;

namespace Prog00
{
class Ex32
{
static void Main()
{
// Write the Main Program for Ex32 here...
int s=0, m=0;

string[] month = new string[12];

int[] sale = new int[11];

for ( m = 0; m < month.Length; m++)
{
Console.WriteLine("Month:{0}", m);

//for (int i = 0; i <= 12;i++ )
//{
// Console.WriteLine("Enter the Sale:");
// ISSConsole.ReadInt();
//}

Console.WriteLine("Enter the Sale:");
s = ISSConsole.ReadInt();
}

if (s > (sale.Length))
{
Console.WriteLine("Maxi sale month:{0}", m);
}
else
{
Console.WriteLine ("Mini sale month:{0}",m);
}





#region /* Do not remove this or write codes after this */
ISSConsole.Pause();
#endregion
}
}
}

No comments:

Post a Comment