Computer Science, asked by Khushi06, 1 year ago

WAP to multiply the values of two single dimensional arrays of size 5 each. Also display the result.


Khushi06: i dont know the Ans so i am asking
DeepuRawat: No I am asking that what really u want in this question, either multiplaying all the no. in both array or specifically like my last comment
Khushi06: to multiply the values of two single-dimensional arrays of 5 each. I want this
DeepuRawat: And in which language u want Java, C, C++
Khushi06: and display the result too
DeepuRawat: programming language??
Khushi06: QB64
Khushi06: basic
DeepuRawat: sorry than I can only help u with C C++ Java
Khushi06: its okay

Answers

Answered by siddhartharao77
1
  int main() 
{    
 int c[5];    
 int a,b;   
 for(a=0; a<5; a++) 
    {  
      printf("\nEnter c[%d] : ",a); 
        scanf("%d",&c[a]);    
}         
b=1;   
 for(a=0; a<5; a++) 
  {       
b=b*c[a];   
 }          
 printf("\nProduct is : %d\n",b);    
  return 1;



Hope this helps!
Similar questions