Write a program in Q Basic to input 10 numbers in an array and print the product of all the numbers of array.
Answers
Answered by
0
Answer:
- #include<stdio.h>
- main()
- {
- int a[10],i,sum=0;
- printf("enter array\n");
- for(i=0;i<10;i++)
- {
- scanf("%d",&a[i]);
- sum=sum+a[i];
- }
- printf("sum of array =%d",sum);
- }
Similar questions