Logic to display alternative elements in a matrix by 2D array. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Logic to display alternative elements in a matrix by 2D array.

1 2 3 4 5 6 7 8 9 1 3 4 2 1 8 Print 2+4+6+8+1+4+1.. sum of all alternative elements.

15th Aug 2017, 5:07 PM
Vishal Sharma
Vishal Sharma - avatar
2 Answers
0
thanks bro
16th Aug 2017, 12:24 AM
Vishal Sharma
Vishal Sharma - avatar
- 1
here it is just run the code... https://code.sololearn.com/c37s2i5yCX9S/?ref=app
15th Aug 2017, 5:32 PM
sayan chandra
sayan chandra - avatar