What's new

Closed HELP JAVA

Status
Not open for further replies.

XieSmile

Eternal Poster
Joined
Feb 8, 2019
Posts
1,113
Reaction
390
Points
347
Meron po akong hindi na gets sa Java Coding mga master pano po proper coding nito na mag input lang ako ng numbers. Di ko naintindihan nasa baba po yung codes and error sa pag compile thanks po sa maka tulong mga master.

IMG20200929130335.jpg

Screenshot_2020-09-29-13-04-48-67_7885c407ff790600b0e797e3f33df4de.jpg

Screenshot_2020-09-29-13-07-35-30_7885c407ff790600b0e797e3f33df4de.jpg

Screenshot_2020-09-29-13-07-46-94_7885c407ff790600b0e797e3f33df4de.jpg

Screenshot_2020-09-29-13-08-00-91_7885c407ff790600b0e797e3f33df4de.jpg
 

Attachments

Bolean are True or False,
While condition ONLY accepts Bolean as an argument,
you are not comparing the var B to anything, thus While Loop see it as an integer not a Bolean.
e.g While(True){
#run this code
}
//yours is:
While(decrementThisnumber){
#run this code.
}
 
Status
Not open for further replies.

Similar threads

Back
Top