// Product of Even Numbers between 1 to 50
class ssvevenprod
{
public static void main(String args[])
{
double sum=1.0;
System.out.println("\n\n\t\tProduct of Even Numbers between 1 to 50");
for(int i=1;i<=48;i++)
{
if(i%2==0)
sum = sum * (double)i;
}
System.out.println("\n\n\t\t\t\tProduct = " + sum);
}
}Java
Calculate Product of Even Numbers Between 1 To 50 Using Java

Written by
View ProfileSenthilvelan Sambamoorthy
Senthilvelan Sambamoorthy is working as a Professor in Department of Master of Computer Applications, Paavai Engineering College, Namakkal, Tamilnadu, India, He is Masters in Computers Applications. Having 18+ years of experience and his area of interest is Java, JSP, Servlet, J2EE, C#, PHP, Python ASP.NET, SQL Server and etc.
