Saturday, 27 July 2013

C-Program To Find The Product Of Even Natural Numbers Ut To a Limit

#include<stdio.h>
main ()
{
int prdct=1,n,i;
printf("Enter the Limit\t");
scanf("%d",&n);
for(i=1;i<=n;i=i++)
{
if(i%2==0)
{
prdct=prdct*i;
}
}
printf("Product of Even Numbers Upto %d is %d",n,prdct);
}





sakoncepts.blogspot.com
output

No comments:

Post a Comment