Question#1
write vb6 program that takes n numbers as input. it outputs the frequency of positive and negative numbers.a sample input and output are given as follows:
Input
n=12
the 12 numbers are as follows:
40 0 -1 59 -37 283 -91 -103 341 523
output:
Frequency of positive numbers:8
Frequency of positive numbers:4
Question#2
write a program that that reads n values in a list and prints the product of the value and the position at which it resides in the list i.e product=L[1]*,product=L[2]*2,and so on.
Note:the list does not change
Example
position: 1 2 3 4 5
value: 5 3 7 1 4
output: 5 6 21 4 20