#can anyone help me in comp this is a while loop program

1 messages · Page 1 of 1 (latest)

limber cargo
#

can anyone help me in comp this is a while loop program

tropic pasture
#

what help do u want in while loop program like do u want to know how to do it or something else

limber lake
#

usually you would have a counter variable that increases every loop

#

(in python) atleast

limber cargo
#

How to solve it

stone rivet
#

I could help you

#

What's the while loop program?

#

Wait which programming language?

#

Java or python?

golden fable
#

which language

#

@limber cargo

limber cargo
#

Its a while loop program

golden fable
#

idk java but i can try to help

glacial stump
#

lol

#
while (condition) {
 // ... code ... with increments
}
``` this is what a loop looks like normally
#

if thats what you wanted

limber cargo
#

Program to prompt and accept a valid decimal number and covert it into a binary number.

glacial stump
#

does it require you to use a while loop?

golden fable
#

You don't need a while loop for that

#

Unless ur accepting multiple values

limber cargo
tropic pasture
#

I don't know Java

#

I could have helped u in python

stone rivet
#

I know both java and python

limber lake
#

i know python html and all that

#

but

#

idk java

#

i have tiniest knowledge of js

stone rivet
#

Java and python very similar

#

Though java has a lot of syntax

#

I am learnt java first then i am learning python so it's taking time to getting use to

#

Cause python's syntax is virtually non-existent

glacial stump
#

the logic is whats important

#

while loop syntax is almost the same between the langs

glacial stump
winged baneBOT
#

Lorenz is AFK: segs - 6 hours ago

glacial stump
#

but you prolly could use one where you add the binary version of each digit and stuff

#

either way thts gonna take some time to figure out hmm

stone rivet
#

Or did you give up and move on

limber cargo
#

Figured it

stone rivet
#

Send code

#

I want to see how you did it