Rajveer singh

Rajveer singh

  • 806
  • 1k
  • 249.4k

how to find out entered last 3 same value in array in c#

Mar 16 2016 6:32 AM
Hi all ,
 
 
    how to find out last enter three same value in array,value enter from textbox on buttion click store  like example...
 
example 
 
arr[0]=12;
arr[1]=65;
arr[2]=98;
arr[3]=12;
arr[4]=65;
arr[5]=98;
arr[6]=56;
arr[7]=56;
arr[8]=56;
 
if match last same value ..... else "Error"
 
arr[6]=56;
arr[7]=56;
arr[8]=56;
 
thanks
 
Rajveer Singh 
 
 
 
 
 

Answers (3)