Write a program in c to find and print the product p = 15 * 14 * 13 * .... * 1
#include< #include< #include< main() { int i, p; p = 1; for (i=15; i > = 1; i=i-1) { p = p * i; } printf("\n The product is %d \n", p); return(0); } |
---|
#include< #include< #include< main() { int i, p; p = 1; for (i=15; i > = 1; i=i-1) { p = p * i; } printf("\n The product is %d \n", p); return(0); } |
---|
© Blogger templates Newspaper III by Ourblogtemplates.com 2008
Back to TOP
0 comments:
Post a Comment