1. Member
Join Date
Feb 2015
Posts
2
Rep Power
0

double a = 12;
double b =%20;

double z = b - a;

2. ## Re: hi. please help me for this code

What does =% mean?

kind regards,

Jos

3. Member
Join Date
Feb 2015
Posts
2
Rep Power
0

Hi mean twenty persent (20%)

4. ## Re: hi. please help me for this code

Originally Posted by Barham_kurd0288
Hi mean twenty persent (20%)
20 percent of what? Can't you multiply that thing by 0.2? (<--- that is a hint)

kind regards,

Jos

5. Senior Member
Join Date
Jan 2013
Location
Northern Virginia, United States
Posts
6,226
Rep Power
14

Originally Posted by JosAH
20 percent of what? Can't you multiply that thing by 0.2? (<--- that is a hint)

kind regards,

Jos
At least the OP can post a percent sign! As I type this I keep wondering if this will work (no it didn't. I had to spell it out).

Regards,
Jim

6. Member
Join Date
Jan 2015
Posts
48
Rep Power
0

You cannot write like double b =20% in Java. If it the problem says 20%, try to get the percentage of the number by applying simple algebraic calculation.

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•