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

Sam drives his car at a constant speed. He travels a distance (d) of 15 miles with 1 /2 of a gallon of gas (g). Write an equation in the form of d=rg that rep
Jane sells 8 times as many Volvo’s as Melissa. If the difference in their sales is 35, how many cars did jane sell?
between what dates did the major pattern of change in the western civilization occur? What are the major historical trends?
The Buganda Empire is known today as _____. Congo Zambia Angola Uganda
What is NOT true about a hypotenuse? The sum of the two leg measures equals the hypotenuse. It is the side opposite the right angle. The measure of the hypotenu
Describe the contributions Sequoyah made to the Cherokee. Please answer this
A salt is added to a solution of water. Which physical property of the water is most likely to change? A.magnetism B.conductivity C.hardness D.flammabil
evaluate x/y + 5 w^2, for x = 2/3 and y = 5/6, and w = 3
The cell also lacks f factors and f plasmids. upon its death, this bacterium should be able to participate in _____. transformation transduction conjugation con
Find f(x) if it is known that f(2a−1)=7a−13