Question about Computers & Internet

1 Answer

Odd or integer?

A programme who differentiates 2 integer wether its odd or even

Posted by on

1 Answer

  • Level 3:

    An expert who has achieved level 3 by getting 1000 points

    Superstar:

    An expert that got 20 achievements.

    All-Star:

    An expert that got 10 achievements.

    MVP:

    An expert that got 5 achievements.

  • Master
  • 2,427 Answers

Hmm here is a psuedo to consider

input number n
while
n = n / 2
if n = 0 then print n = even , break loop
if n < 0 then print n is odd
loop

Posted on Jul 12, 2008

  • Rishi Roshan Ali Jul 12, 2008

    slighty correction use 1 instead of 0

×

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

Find the smallest two consecutive even integers such that three times the smaller is at least 19 more than the sum of the two integers


Let x be the smallest number.
Let x + 2 be the other number (consecutive even integer)

Now to translate the rest;)
three times the smaller 3(x)
19 more -19
sum of the two integers - (x) +( x+2)

Pulling it together,
3x -19 = x + x +2
collect like terms
3x - 19 = 2x + 2
Put all the constants on one side by adding 19 to both sides.
3x - 19 +19= 2x + 2 + 19
3x = 2x +21
Subtract 2x from both sides to have all the x's on one side.
3x - 2x = 2x +21 - 2x
x = 21
The other number is 21 + 2, or 23
Check:three times the smaller = 3 x 21 = 63
sum of the two integers = 21 + 23 or 44
is 63 at least 19 more than 44






Feb 19, 2015 | Office Equipment & Supplies

1 Answer

Consecutive odd integers


83+85+87+89=344

Jul 05, 2014 | Plumbing

1 Answer

Sum of consecutive positive integers


Here's a simple (and inefficient) 35s program. It simply goes through a loop 25 times, adding up the numbers.

A001 LBL A
A002 25
A003 STO A
A004 0
A005 RCL+ A
A006 DSE A
A007 GTO A005

The sum of the first N positive integers can be calculated more efficiently as N(N+1)/2 .

Mar 10, 2014 | HP 35s Programmable Scientific Calculator...

1 Answer

Consecutive odd integers


-2 and -4.
Hope this helps.
Bob

Dec 09, 2013 | Plumbing

1 Answer

Solve 20*d=1mod 48


There is no solution in the integers. 20*d is an even number for all d, and no even number mod another even number is odd.

May 08, 2013 | Casio FX991ES Scientific Calculator

1 Answer

Find two consecutive even integers such that twice the smaller exceeds the larger by 18.


Let x be first (smaller) integer and y second (larger) integer.
  1. They are consecutive (and even) : y=x+2
  2. Twice the smaller exceeds the larger by 18: 2*x=y+18
  3. Substitute first equation into second: 2x=x+2+18
  4. 2x-x=2+18
  5. x=20
  6. y=x+2=22

These two numbers are 20 and 22.

Oct 03, 2011 | Office Equipment & Supplies

1 Answer

The smallest of 3 consecutive odd integers is added to twice the largest, giving a result 24 less than 5 times the middle. Find the integers


Let x be the smallest integer, then x+2 is the middle and x+4 the largest one. Resolve the equation

x + 2 * ( x + 4 ) = 5 * ( x + 2 ) - 24
=> x = 11

The three numbers are therefore 11, 13, and 15. The fact they are odd is irrelevant for finding the answer.

Jan 17, 2011 | Texas Instruments TI-84 Plus Calculator

2 Answers

Find three consecutive odd integers whose sum is 105


X + ( X + 2 ) + ( X + 4 ) = 105
3X + 6 = 105
3X = 105 - 6
3X = 99
X = 99/3
X = 33
So 33 + 35 + 37 = 105

Oct 06, 2010 | American Standard Plumbing

1 Answer

Find two consecutive even integers whose product is 1,520


2n = 1st even integer
2n + 2 = 2nd even integer

Product = 2n(2n + 2) = 4n^2 + 4n = 4(n^2 + n)
1520 = 4(n^2 + n)
1520/4 = 4(n^2 + n)/4
380 = n^2 + n
0 = n^2 + n - 380
0 = (n + 20)(n - 19)
n = -20, +19

Answer can not be negative so n = +19

2n = 2(19) = 38
2n + 2 = 2(19) + 2 = 40

ANSWER: the integers are 38 and 40


Nov 16, 2009 | RCA HD52W59 HDTV Projection Television

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

61 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

kakima

Level 3 Expert

102366 Answers

David Payne
David Payne

Level 3 Expert

14161 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...