+ 1

Write a function in C++ to add 8 in all odd values and 6 in all even values of the array a....

e.g. if array is 8,7,5,4,5,2,6 the output will be: 14,15,13,10,13,8,13

21st Mar 2018, 3:45 PM
Aditya Mishra
Aditya Mishra - avatar
2 Respostas
+ 14
hello Aditya Mishra, if that is a challenge instead a homework, you should it make public in the new lesson section for challenges, have a nice day 👍😉
21st Mar 2018, 3:49 PM
tooselfish
tooselfish - avatar
+ 1
BUT HOW????
21st Mar 2018, 3:54 PM
Aditya Mishra
Aditya Mishra - avatar