Computer Science, asked by milithegrate, 8 months ago

If int x[]={4,3,7,8,9,10}; what will be the value of p when p=x[2]+x[5] *x[1]?

Answers

Answered by Oreki
1

Answer:

37

Explanation:

As, x[2] = 7, x[5] = 10 and x[1] = 3,

> p = 7 + 10 * 3

> p = 7 + 30

> p = 37

Answered by anindyaadhikari13
2

\star\:\:\:\sf\large\underline\blue{Answer:-}

Given array of elements,

x[]={4,3,7,8,9,10}

Total number of elements in array = 6

x[2]=7

x[5]=10

z[1]=3

Therefore

p=x[2]+x[5]*x[1]

Or,

p=7+10*3

=7+30

=37

Therefore, p=37.

Similar questions