On execution of this program it will print the product of all digits up to 10 
 on the screen. 


 Program

 #include <stdio.h>

 #include <conio.h>

 void main()

 {

  int n=1,product=1; 

  for (n=1;n<=10;n++)

    {

     product=product*n;

    }

   printf("product of digits of natural no no up to 10: %d\n",product);

 }

 Output:



                       << Back

Post a Comment

Previous Post Next Post