Hi all,
please i need help.
i trying to write simple program in c# express 2010 in console application:
i am trying to write program to put 5 numbers on array and the check if have 2 Consecutive numbers(2 and 3 or 8 and 9 etc...) if yes the program will write to the following numbers.
i want the pication11.program.Max()': not all code paths retrogram will input the numbers to array in function. i did it not correct because i got error:
"ConsoleApplurn a value"
my wrong code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication11
class Program
{
static void Main(string[] args)
{
Console.WriteLine("The folowing numbers:");
}
public static int Max()
{
int v=1;
int[] arr = new int[5];
for(int i=1;i<=5;i++)
{
arr[i] = int.Parse(Console.ReadLine());
Console.WriteLine("Please enter number");
return v;
}
}
}
}
{
please help me.