Math, asked by Mubashirk7248, 2 months ago

The figure shows a number crunching machine in which any integer can be fed as input. There are a
set of instructions which produces output as follows:
If a positive integer is fed into the number
crunching machine, it produces one of two
results:
If the integer fed in is EVEN, the machine divides
the number by 2.
If the integer fed in is ODD, the machine
subtracts one from the number.
If a negative integer is fed into the number
crunching machine, it produces its additive
inverse.
cct- class 7- April- 21
Question1. Find the result when the 123 is fed into the machine?

Answers

Answered by RvChaudharY50
25

Given :- If a positive integer is fed into the number crunching machine, it produces one of two results :-

  • If the integer fed in is EVEN, the machine divides the number by 2.
  • If the integer fed in is ODD, the machine subtracts one from the number.

If a negative integer is fed into the number crunching machine, it produces its additive inverse.

To Find :- Find the result when the 123 is fed into the machine ?

Answer :-

we know that,

  • Even numbers are the numbers which are exactly divisible by 2 , or we can say that, when divide by 2 they gives remainder as 0 .
  • Odd numbers are the numbers which when divides by 2 gives remainder as 1 .
  • Positive integers are from 0 to + infinity

so, checking odd or even first,

→ 123 ÷ 2 = 61 * 2 + 1 = remainder 1 .

then,

→ 123 = an positive odd number .

now, we have given that,

  • If the integer fed in is ODD, the machine subtracts one from the number.

therefore,

→ Required result = 123 - 1 = 122 (Ans.)

Hence, when 123 is fed into the machine, the machine gives the result 122 .

Learn more :-

A cylindrical overhead container is filled by two pumps P1 and P2. P1 can fill the container in 8 hr while P2 can fill t...

https://brainly.in/question/38540894

Answered by purvadarwai
1

Answer :

I don't know about this question

You can solve this your self

I hope can solve this with your self

ok , by by

Similar questions