Consider the following code: for i= m to n increment 2 { print "Hello!" } Assuming m < n and (m,n) are either both even or both odd, How many times will Hello be printed?
Answers
Answered by
6
Hey There!!
The word Hello! will be printed number of times.
Here's an example: Take m=3, n=9
Then i will take the following values: i=3,5,7,9
Clearly there are 4 values, and
You can also check it with other possible values.
Hope it helps,
Purva
Brainly Community
The word Hello! will be printed number of times.
Here's an example: Take m=3, n=9
Then i will take the following values: i=3,5,7,9
Clearly there are 4 values, and
You can also check it with other possible values.
Hope it helps,
Purva
Brainly Community
Similar questions
Science,
7 months ago
Math,
7 months ago
Math,
1 year ago
Math,
1 year ago
Social Sciences,
1 year ago
Psychology,
1 year ago
Physics,
1 year ago