Please Help ME

how can I write the algorithm within using array
example:
a = 1 2
3 4

b = 8 2
3 5


result c = 0 1 //when element a=b result=1, else = 0
1 0

Please write the algorithm
Last edited on
closed account (48T7M4Gy)
cout << "the algorithm"
first, create two arrays to accept the different inputs, then you loop through the arrays, comparing their elements. if they are all equal, do x, else do y.
Topic archived. No new replies allowed.