Saturday, 27 July 2013

C-Program to Find The Product of Squares Of Natural Numbers Upto 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++)
  {
prdct=prdct*i*i;
}
printf("Product of Squares Upto %d is %d",n,prdct);
}






sakoncepts.blogspot.com
output

No comments:

Post a Comment