Get Email Subscription

Enter your email address:

Delivered by FeedBurner

Saturday, January 23, 2010

Write a program in c to find and print the product p = 1 * 2 * 3 * 4 * ...... *10


#include<stdio.h>
#include<conio.h>
#include<math.h>
main()
{
int i, p;
p = 1;
for ( i=1; i < = 10; i++)
{
p = p * i;
}
printf("\n The product is %f \n", p);
return(0);
}

Related Posts by Categories



0 comments:

About This Blog

Lorem Ipsum

  © Blogger templates Newspaper III by Ourblogtemplates.com 2008

Back to TOP