inverse of array of integer

Status
Not open for further replies.

ashwini012

Newbie level 3
Joined
Mar 27, 2015
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
38
i want to make operation as:

Code:
for i .....0 to 9
A:= 1 / var(i) ;

var is the array of integer.

can anybody help me?


Thank you.
 

Write a function that takes an array of integers as input and returns one as well implementing what you've described

Kevin Jennings
 

make A as a output array and then put the A(i) = 1/var(i) inside the loop.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…