2. 1,2,3,...what? by CodeChum Admin I’m Dr. Frankenstein, and I’ve just created an intelligent monster! It can even count numbers now but the problem is, it can only count up to 3, so maybe it isn’t so intelligent after all. I want to use my creation to terrorize the villages but it keeps malfunctioning when it sees a digit that is greater than 3 so the villagers just put up signs of digits greater than 3. Make a program that is able to recognize digits greater than 3 so that it can avoid it or I'll have my monster terrorize YOU instead! Input 1. Integer n Description The integer to be processed. Constraints 0 <= n <= 2147483647 Sample 45 Output The first line will contain a message prompt to input the value of n. The succeeding line will contain all the digits of n that are greater than 3 and if there is none, the word "none". Enter · n : · 415 4 5

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter2: Problem Solving Using C++using
Section2.3: Data Types
Problem 9E: (Practice) Although the total number of bytes varies from computer to computer, memory sizes of...
icon
Related questions
Question

2. 1,2,3,...what?

by CodeChum Admin

I’m Dr. Frankenstein, and I’ve just created an intelligent monster! It can even count numbers now but the problem is, it can only count up to 3, so maybe it isn’t so intelligent after all. I want to use my creation to terrorize the villages but it keeps malfunctioning when it sees a digit that is greater than 3 so the villagers just put up signs of digits greater than 3. Make a program that is able to recognize digits greater than 3 so that it can avoid it or I'll have my monster terrorize YOU instead!

Input

1. Integer n

Description

The integer to be processed.

Constraints

0 <= n <= 2147483647

Sample

45

Output

The first line will contain a message prompt to input the value of n. The succeeding line will contain all the digits of n that are greater than 3 and if there is none, the word "none".

Enter · n : · 415
4
5
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Random Class and its operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr