Question:

Turbo C using two-dimensional array

by  |  earlier

0 LIKES UnLike

Write a program using two-dimensional array that lists the odd numbers and even numbers separately in a 12 input values.

Sample output;

Enter 12 numbers in the array

10 15 12 5 4 8 7 22 19 11 3 18

Odd numbers are:

15 5 7 9 11 3

Even numbers are:

10 2 4 8 22 18

Thank you so much!

 Tags:

   Report

1 ANSWERS


  1. if ((number & 0x01) == 0x01)

    its odd

    else

    its even

    the rest is just loading them into the arrays. pretty easy

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.