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