# Thread: I beg you, help me with these tasks in Java!

1. Member
Join Date
Dec 2011
Posts
3
Rep Power
0

## I beg you, help me with these tasks in Java!

1. Write a program to do while loop calculated values ​​of the expressions for the values ​​of x from 1 to 10 with step 0.5!

2. Write a program that accounts for the son of alpha angle alpha between 0 and 360 degrees in steps of 30 degrees!

3. Write a program to do while loop calculated values ​​of the expressions for the value of x from 1 to 10.

Please, help me and thank you very much!

2. ## Re: I beg you, help me with these tasks in Java!

Originally Posted by alisia
1. Write a program to do while loop calculated values ​​of the expressions for the values ​​of x from 1 to 10 with step 0.5!

2. Write a program that accounts for the son of alpha angle alpha between 0 and 360 degrees in steps of 30 degrees!

3. Write a program to do while loop calculated values ​​of the expressions for the value of x from 1 to 10.

Please, help me and thank you very much!
I think that I speak for all in wishing you much luck with your assignment.

However all you done is posted your requirements, and we won't be able to help at all unless you post answerable questions. Please show us what you've done so far, and let us know exactly what are your specific points of confusion. If it's "everything", then please check out the Java tutorials and how to write program links below:

The Java Tutorials: the Really Big Index
So, You Need to Write a Program but Don't Know How to Start

Again, best of luck!

3. ## Re: I beg you, help me with these tasks in Java!

Have you tied anything yet?

4. Member
Join Date
Dec 2011
Posts
3
Rep Power
0

## Re: I beg you, help me with these tasks in Java!

Have I tried them I did somehow work, thank you, but this task kept trying, but it will not!

Program work in JCreator, but does not work!

Write a program that determines the least common divisor of numbers. Example: numbers 24 and 26 are divisible by the numbers 2, 3, 6 and 12, and No. 12 should be a solution?

Java Code:
```public static void main(String[] s){
long factor= Math.max(a, b);
for(long loop= factor;loop > 1;loop--){
if(a % loop == 0 && b % loop == 0){
return loop;
}
}
return 1;
}
}```
Thank you very much and happy holidays to you!
Last edited by Eranga; 01-06-2012 at 02:26 PM. Reason: code tags added

5. ## Re: I beg you, help me with these tasks in Java!

So is this work as you expect?

6. Member
Join Date
Dec 2011
Posts
3
Rep Power
0

## Re: I beg you, help me with these tasks in Java!

This program for me in JCreator, will not work, throws me more errors, if you were kind energia, help me!

7. ## Re: I beg you, help me with these tasks in Java!

throws me more errors,
Please post the full text of the error messages if you want help with them.

8. ## Re: I beg you, help me with these tasks in Java!

Originally Posted by alisia
This program for me in JCreator, will not work, throws me more errors, if you were kind energia, help me!

Without knowing what the error message, how can we comment on your question. Please post the complete error you comes with.

#### Posting Permissions

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