Write an algorithm to find the product of any five input integers

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;

}

Replacing Digits in integer

Input

1 2 3 2 2

Output

24

Non zero element integers



Rajesh

This Blog will help you to find out the c programs solution easily and also you can able to understand the program.Please follow our blog for more useful updates.

Post a Comment (0)
Previous Post Next Post