How many MATHEMATICAL operations take place How many mathema

How many MATHEMATICAL operations take place?

How many mathematical operations operations take place in the following code? for (int i = 1, j = 1; i

Solution

int i =1, j=1 ; two assignment operations

i<24 : comparison operation

i = i+2 ; here two mathematical operations , sum and then assignment.

j= j*i ; here two mathematical operations , multiplication and assignment

How many MATHEMATICAL operations take place? How many mathematical operations operations take place in the following code? for (int i = 1, j = 1; i Solutionint

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site