Algorithm to find the product of any five input integers.
Step1: Start.
Step 2: Declare integer variables a, b, c, d, e and result.
Step 3: Get Values of a, b, c, d and e.
Step 4: Product the values using formula like result=a*b*c*d*e.
Step 5: Print result.
Step 6: Stop.
Program Coding for above algorithm
#include<stdio.h>
int main()
{
int a,b,c,d,e,result;
scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);
result=a*b*c*d*e;
printf("%d",result);
return 0;
}
Input
1 2 3 2 2
Output
24