Code for product of digits 1 to 10(Using for loop)

Code for product of digits 1 to 10(Using for loop)

#include<stdio.h>
#include<conio.h>
void main()
{
    int i,m=1;
    for(i=1;i<=10;i++)
    {
        m=m*i;
    }
    printf("Product=%d",m);
    getch();
}


Product


Comments

Popular posts from this blog

Code for pattern 6

Code to check leap year