Computer Science, asked by 7uuuye, 1 year ago

write a program to display the products of 5 numbers.

Answers

Answered by mudangnadopd1zri
0
#include<stdioh>
int main()
{
int a[4];
printf("Enter any 5 numbers:");
for(int i = 0; i < 5; i++)
scanf("%d",&a[i]);
int product = 1;
for(int i = 0; I < 5; i++)
product = product * a[i];
printf("\n The product is %d", product);
return (0);
}
Similar questions