🔒 Closed C LANGUAGE PATULONG PO

Status
Not open for further replies.

m a e 0 9

Grasshopper
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]...
 
Status
Not open for further replies.

About this Thread

  • 2
    Replies
  • 2K
    Views
  • 2
    Participants
Last reply from:
m a e 0 9

Online now

Members online
1,024
Guests online
720
Total visitors
1,744

Forum statistics

Threads
2,276,959
Posts
28,973,344
Members
1,229,665
Latest member
hellowwolrd
Back
Top