🔒 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

Trending Topics

Online now

Members online
1,083
Guests online
1,707
Total visitors
2,790

Forum statistics

Threads
2,287,384
Posts
29,044,386
Members
1,216,504
Latest member
Jolowewi
Back
Top