Concluído

C++ program and question

The program: Write a program that adds the positive odd numbers you enter from the keyboard while ignoring the even numbers, and stops when a negative number or zero are entered. Display the sum of the accepted odd numbers. The question: 1. Write a while loop equivalent to the following: Int a = 4; While (a > 0 ) { cout << a << " " ; a -= 1; } without the last line of the loop. Use an increment/decrement operator inside the while condition and any other changes to any of the lines listed above in order to make sure the program's behavior will no change. In other words, the loop body should only contain the line cout << a << " ". The loop should look as follows: Int a = ? ; While ( ? > 0 ) cout << a << " "; where you will replace the ? with the proper code so that the output of this code is the same as the original output. 1. Again, write another equivalent loop, but this time use an increment/decrement operator only on the Loop body. While ( a > 0 ) Cout << a << " " ;

## Deliverables

Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased.

## Deadline information

Before january 22/2002

Habilidades: Programação C, Engenharia, MySQL, PHP, Arquitetura de software, Teste de Software

Veja mais: while loop c programming, programming question in c, programming program, programming operator, programming loop, programming keyboard, operator code, loop programming, c programming while loop, c programming operator, c# functional programming, any question, program line, c program source code, question, question 4, program output, loop sum, write lines php code, display program

Acerca do Empregador:
( 3 comentários ) United States

ID do Projeto: #2836941

Concedido a:

ij1402

See private message.

$1 USD em 14 dias
(37 Comentários)
4.6

7 freelancers estão ofertando em média $9 para esse trabalho

vw181638vw

See private message.

$7.65 USD in 14 dias
(44 Comentários)
5.4
sanatanvw

See private message.

$17 USD in 14 dias
(72 Comentários)
5.5
nedani

See private message.

$5.95 USD in 14 dias
(53 Comentários)
5.4
oonthsl

See private message.

$12.75 USD in 14 dias
(63 Comentários)
5.3
cdware

See private message.

$12.75 USD in 14 dias
(35 Comentários)
5.0
sumeghagoyal

See private message.

$6.8 USD in 14 dias
(14 Comentários)
3.5