Hi everyone, I know there is a simpler way to execute the requirement, but I wanted to take the "fancy" route to help me grasp calling variables from other methods. Any help is appreciated.
package com.codegym.task.task03.task0308;
/*
Product of 10 numbers
*/
public class Solution {
public static void main(String[] args) {
//write your code here
g= pdt(t);
System.out.println(g);
}
public static int pdt(int t) {
t = 1*2*3*4*5*6*7*8*9*10;
return t;
}
}