cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Please Help ME
Please Help ME
Dec 3, 2016 at 9:20am UTC
ryard
(5)
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
Dec 3, 2016 at 9:22am UTC
Dec 3, 2016 at 9:39am UTC
closed account (
48T7M4Gy
)
cout << "the algorithm"
Dec 3, 2016 at 1:30pm UTC
Aceix
(1118)
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.