ramylan00
ramylan00 ramylan00
  • 09-01-2021
  • Computers and Technology
contestada

please help me please help me​

please help me please help me class=

Respuesta :

asmaNasr
asmaNasr asmaNasr
  • 09-01-2021

Explanation:

in C++

#include<iostream.h>

#using namespace std;

main()

{

int array[8];

int oddSum=0;

for(int i=0; i<8;i++)

{

if(array[i]%2==1)

{

oddSum=oddSum+array[i];

}

else()

{ //do nothing }

}

cout<<"The sum of odd numbers are:"<<oddSum;

getch();

return 0;

}

Answer Link

Otras preguntas

Alex and Ben were given a total of £360 they shared the money in the ratio 5:7 Ben received more money then Alex.how much more?
Who was the ancient Gaelic warrior-bard considered by Napoleon and Thomas Jefferson to have been greater than Homer? a) Macpherson b) Merlin c) Decameron d) Tal
How much CaCl2, in grams, is needed to make 2.0 L of a 3.5M solution?
(2x^2-17x-38)/(2x+3)
Justin and Austin decide to play catch after school. they start at the Same point. Justin walks 50feet north and 20,feet west. Austin walks 40 feet south and 10
Where would you expect the LEAST amount of tradeA. Where farms produce more than the farmers consume.B. Where hunting and fishing are the primary means of survi
How do you find the total surface area of a 3-D composite figure? Do you subtract one base from one of the figures or both of its bases?
ISSUING driver's licenses is the responsibility of which level of  government
How much CaCl2, in grams, is needed to make 2.0 L of a 3.5M solution?
What is one example of a molecule that is not a compound?