You work in the best consumer electronics company around. Your boss asked you to find out which products generate the most revenue.
You'll be giv...
For further actions, you may consider blocking this person and/or reporting abuse
Haskell
Scala
And some tests
Elixir
Javascript - Reduce method
python
Here is C++ solution
Python
Haskell:
include
int main()
{
int i , a , j , revenue;
char A[15][30];
int B[30];
int C[30];
printf("enter the number of inputs you want to enter :");
scanf("%d" , &a);
printf("enter the name of the items :-\n");
for(i=-1;i<a;i++)
{
{
if(i>0)
{
if(C[i]*B[i]>C[i-1]*B[i-1])
{
revenue=C[i]*B[i];
j=i;
}
}
}
}