Computer Science, asked by OmBirari5495, 1 year ago

algorithm for multiplies of all two digit odd numbers

Answers

Answered by agis
0

The  2-digit odd numbers is the series (11, 13, 15, ..., 95, 97, 99).

Explanation

1) Initialize the first loop (i) with 11 and increment each iteration by 2 until the value 99 is reached.

2) Initialize the second loop (j) with 11 and increment each iteration by 2 until the value 99 is reached.

3) Multiply i with j to get the desired results.

Algorithm:

The algorithm that multiplies all two digits odd numbers:

1) for i = 11 to 99 increment by 2 do          

2)     for j = 11 to 99 increment by 2 do  

3)         [multiply i times j]  

4)      end for  

5) end for

Answered by aqibkincsem
0

The first thing needs to identify is that the answer must be a multiple of 5, which means that you can multiply 5 with unknown number n, such that 5∗n=That  Number.


Secondly, that number should be even, and divisible by 2. Since multiples of 5 always end in either 0 or 5, we-we's only concerned with those multiples to end with 0.


Third, the number should be a double-digit i.e it should be greater than -100 and less than 100.


We can move on to identify the largest number that solves those conditions. We can do it fast  by picking the largest multiple of 5 which is less than 100, isay 95.


But, 95 is not even. So we choose a multiple of 5, which is 90.Since 90 satisfies all the above conditions, it is the answer to your question.

Similar questions