rendered paste body#include <stdio.h>
#define SIZE 10
double extend(double[], double[], double[]);
int main()
{
int i=0;
double price[SIZE]={10.62,14.89,13.21,16.55,18.62,9.47,6.58,18.32,12.15,4.8};
double quantity[SIZE]={4,8.5,6,8.35,9,15.3,3,5.4,2.8,4.8};
double amount[SIZE];
extend(price, quantity,amount);
for (i=0;i<=SIZE;i++)
{
printf("The amount of %d is %d",i, amount);
}
return 0;
}
double extend(double price[SIZE], double quantity[SIZE], double amount[SIZE])
{
int i;
for (i=0; i<=SIZE;i++)
{
amount[i]=price[i]*quantity[i];
}
return (amount);
}