Find Jobs
Hire Freelancers

C++ program and question

$15-20 USD

В роботі
Опублікований about 22 years ago

$15-20 USD

Оплачується при отриманні
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
ID проекту: 2836941

Про проект

7 пропозицій(-ї)
Дистанційний проект
Активність 22 yrs ago

Хочете заробити?

Переваги подання заявок на Freelancer

Вкажіть свій бюджет та терміни
Отримайте гроші за свою роботу
Опишіть свою пропозицію
Реєстрація та подання заявок у проекти є безкоштовними
Доручений:
Аватарка користувача
See private message.
$1 USD за 14 дні(-в)
5,0 (37 відгуки(-ів))
4,6
4,6
7 фрілансерів(-и) готові виконати цю роботу у середньому за $9 USD
Аватарка користувача
See private message.
$7,65 USD за 14 дні(-в)
4,8 (44 відгуки(-ів))
5,4
5,4
Аватарка користувача
See private message.
$17 USD за 14 дні(-в)
4,4 (72 відгуки(-ів))
5,5
5,5
Аватарка користувача
See private message.
$5,95 USD за 14 дні(-в)
5,0 (53 відгуки(-ів))
5,4
5,4
Аватарка користувача
See private message.
$12,75 USD за 14 дні(-в)
5,0 (63 відгуки(-ів))
5,3
5,3
Аватарка користувача
See private message.
$12,75 USD за 14 дні(-в)
5,0 (35 відгуки(-ів))
5,0
5,0
Аватарка користувача
See private message.
$6,80 USD за 14 дні(-в)
5,0 (14 відгуки(-ів))
3,5
3,5

Про клієнта

Прапор UNITED STATES
United States
2,9
3
На сайті з січ. 19, 2002

Верифікація клієнта

Дякуємо! Ми надіслали на вашу електронну пошту посилання для отримання безкоштовного кредиту.
Під час надсилання електронного листа сталася помилка. Будь ласка, спробуйте ще раз.
Зареєстрованих користувачів Загальна кількість опублікованих робіт
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Завантажуємо для перегляду
Дозвіл на визначення геолокації надано.
Ваш сеанс входу закінчився, і сеанс було закрито. Будь ласка, увійдіть знову.