write a program to display the products of 5 numbers.
Answers
Answered by
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);
}
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
Science,
7 months ago
Political Science,
7 months ago
Social Sciences,
1 year ago
Math,
1 year ago
English,
1 year ago
Chemistry,
1 year ago