Advertisement
Guest User

R

a guest
Dec 8th, 2019
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. public class HelloWorld {
  2.  
  3. public static int hello(int m ,int n)
  4. {
  5. int i = m;
  6. int z = m;
  7. for(i++;i<n;)
  8. {
  9. System.out.println("g");
  10. z = z + m;
  11. }
  12. return z;
  13. }
  14. public static void main(String[] args)
  15. {
  16. int v;
  17. v = hello(0,8);
  18. System.out.println(v);
  19. }
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement