# Question: c programming language 4 given two integers x and y...

###### Question details

C Programming language

4. Given two integers x and y, find the larger value of them and assign the larger one to z. Write the statement in C using if …else...

5. Loops: given N integers, find the sum of them. Write the code
using a *for* loop.

6. Loops: given N integers, find the sum of them. Write the code
using a *while* loop.

**Before working on the following problems, you need read
the Chapter 2 of the B.O. Textbook (“Computer Systems: A
programmer’s perspective, 3 ^{rd} edition). No
calculators.**

7. Number representation:

What are the binary and hex representations of the decimal number 279? Show your work on how to get them.

8. Complete the following number conversions (all numbers are unsigned)

(1010101)_{2}=(
)_{16}=(
)_{10}

(F4)_{16}=(
)_{2}=(
)_{10}

2019=(
)_{2}=(
)_{16}