ok here's what i am trying to do. i ask user for a value or just assign a value my self for example int a=150;
now i want the output like this:
1
5
0
so is this possible?? please use simple programming i guess it can be done with for loop. i don't understand advance java so please be simple and specific.
forjustincase 0 Newbie Poster
Recommended Answers
Jump to PostIf you read my previous post about safer for any number length, you wouldn't do the way you did. Also in your way, you need to store the number somewhere before you can display because you are working on it backward (from the least significant value). That's why I suggested …
Jump to PostSorry, but that code makes no sense at all, it just looks like a random collection of assignments. Line 8 will screw up the loop variable, and where did 12 ever come into this problem? I guess you just tried things at random until the output was nearly right for …
Jump to PostSeriously dude, please re-read the previous posts. There's one that gives you a hint, followed by one that has pseudo-code, followed by one that has the actual Java code you need. All you have to do is adapt it into your code.
I'm detecting a hint of panic in your …
All 10 Replies
Taywin 312 Posting Virtuoso
forjustincase 0 Newbie Poster
Lucaci Andrew 140 Za s|n
ObSys 56 Junior Poster
forjustincase 0 Newbie Poster
Taywin 312 Posting Virtuoso
forjustincase commented: i agree but i havn't studied these methods yet i told you i am a newbie thats why i am trying to solve it the way i know... help in that way... please :) +0
jalpesh_007 -3 Newbie Poster
forjustincase 0 Newbie Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
forjustincase commented: yes thanks i know even i don't know what i wrote :P but please can anyone write full code of what is described above? i mean i don't even have a single clue of what he said :( +0
JamesCherrill 4,733 Most Valuable Poster 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.