hi im new to java and just need a little help in the right direction. I am trying to display an input of int on number at a time. So for example the user would enter 1998 and the output would be:
1
9
9
8
and we have to use the operators / and %. I know that % is to show the remainder but it just doesn't make sense to me how they could output that on each line. I have tried solving this using just / and - but it doesn't work. Also the input can only be a 4 digit Int
BlackNinja
0
Newbie Poster
Recommended Answers
Jump to Posthi im new to java and just need a little help in the right direction. I am trying to display an input of int on number at a time. So for example the user would enter 1998 and the output would be:
1
9
9
8
and we have to …
Jump to Postthanks so much :D, I'm new to this. You solved one of my problems, so I'm gonna ask another one that you can maybe answer. I was wondering if there was a way to take the first word in a sentence and replace it with last one and vice versa. …
All 5 Replies
VernonDozier
2,218
Posting Expert
Featured Poster
stephen84s
commented:
Now I know how to help people who don't know where to start
+3
BlackNinja
0
Newbie Poster
VernonDozier
2,218
Posting Expert
Featured Poster
BlackNinja
0
Newbie Poster
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.