powered by simpleCommunicator - 2.0.59     © 2025 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / C++ [игнор отключен] [закрыт для гостей] / input to determine even and odd numbers
2 сообщений из 2, страница 1 из 1
input to determine even and odd numbers
    #39430982
Sumit Modi
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Hello all, I am new to c++ and I am currently taking a class, but my teacher doesn't really teach anything which is why I am soliciting help. My current problem is that I'm not sure sure how to go about to solve my problem.

The problem: Ask user to input a positive integer then the output should show the odds and even numbers from the number entered

Example, if the user inputs the number '1426' then my codes output should show the even numbers from the number entered.
Even numbers entered: 2,4,6

It should also show the odd numbers as well. Example, if user inputs '134' then it should show....
Odd numbers entered: 1,3


Any help or tips would be very appreciative. Like i said, I'm only a month into my c++ class, so any help would be great.


please help.
Thanks.

I didn't get the right answer from the internet.
References:
http://forums.codeguru.com/showthread.php?558911-input-to-determine-even-and-odd-numbers
...
Рейтинг: 0 / 0
input to determine even and odd numbers
    #39431102
White Owl
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
...
Рейтинг: 0 / 0
2 сообщений из 2, страница 1 из 1
Форумы / C++ [игнор отключен] [закрыт для гостей] / input to determine even and odd numbers
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]