
write a code to calculate the product of odd integers from 1-15

class ProductOfOddIntegers
{
public static void main(String[] args)
{
long product=1;
for(int i=1;i<=15;i++){
if(i%2!=0){
product=product*i;
}
}
System.out.println(product);
}
}

THANKS SO MUCH FOR THE HELP
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.