Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Execute Lua Online

print("Hello World!")
array1={1,2,3,4,5}
int array2= {1,2,3,5,4}
for a=1,5
do
  if(array1[i] = array2[i]) 
  {
      print("Match")
  }
else
  {
      print ("array1 Element"+array1[i] + "array2 Element"+array1[i])
  }
end

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.