Saturday, 27 July 2013

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





sakoncepts.blogspot.com
output



No comments:

Post a Comment