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
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
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".
4
5
Step by step
Solved in 3 steps with 2 images