Write a method that accepts two parameters namely N and R. The method should check whether the number R is the summation of N subsequent number (any number). Write a Java pr