What's new

C LANGUAGE PATULONG PO

m a e 0 9

Journeyman
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
 
use array of char to accept the value and then use loop to read them.
While reading each i (index) convert the values to int (cast) and check if the values is greater than 3. If yes, output arr[index] else [blank]...
 

Similar threads

Back
Top