Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static double forward(double limit) {
- //Declare local variables
- double num1 = 5, result = 0;
- //Add n to r, d times
- for (double i = 0; i < limit; i++) {
- result += num1;
- }//endfor
- return result;
- }//end method forward
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement