main.c 5. Only the Even Ones 1 #include by CodeChum Admin 3- int main(void) { I have an array of 100 numbers here with me that's already in the code editor. I want you to print out only the even numbers from the array and the message, "I love CodeChum" beside each of the number. 4. int nums [100] = { 2, 3, 5, 100, 7, 3, 5, 3, 1, 4, 76, 77, 78, 79, 80, 54, 68, 61, 34, 33, 44, 49, 100, 5, 2, 87, 34, 33, 2, 1, 4, 5, 8, 2, 1, 8, 5, 3, 2, 1, 88, 22, 23, 33, 48, 44, 46, 48, 50, 52, 45, 47, 49, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 11, 22, 33, 44, 55, 66, 77, 88, 99, 100, 1000, 2001, 300o, 4001, 5000, 6001, 7000, 8001, 9000, 10001 }; 5- 6. 7 8 9 Can you do that for me? 10 11 51, 53, 1, 1, 1, 1, 1, 12 Output 13 14 Multiple lines containing a string. 15 16 17 2--I love CodeChum 18 return 0; 100 - I love CodeChum 19 } 4 - I love CodeChum 76 - I love CodeChum 78 - I love CodeChum 80 - I love CodeChum 54 - I love CodeChum 68 - I love CodeChum 34 - I love CodeChum
main.c 5. Only the Even Ones 1 #include by CodeChum Admin 3- int main(void) { I have an array of 100 numbers here with me that's already in the code editor. I want you to print out only the even numbers from the array and the message, "I love CodeChum" beside each of the number. 4. int nums [100] = { 2, 3, 5, 100, 7, 3, 5, 3, 1, 4, 76, 77, 78, 79, 80, 54, 68, 61, 34, 33, 44, 49, 100, 5, 2, 87, 34, 33, 2, 1, 4, 5, 8, 2, 1, 8, 5, 3, 2, 1, 88, 22, 23, 33, 48, 44, 46, 48, 50, 52, 45, 47, 49, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 11, 22, 33, 44, 55, 66, 77, 88, 99, 100, 1000, 2001, 300o, 4001, 5000, 6001, 7000, 8001, 9000, 10001 }; 5- 6. 7 8 9 Can you do that for me? 10 11 51, 53, 1, 1, 1, 1, 1, 12 Output 13 14 Multiple lines containing a string. 15 16 17 2--I love CodeChum 18 return 0; 100 - I love CodeChum 19 } 4 - I love CodeChum 76 - I love CodeChum 78 - I love CodeChum 80 - I love CodeChum 54 - I love CodeChum 68 - I love CodeChum 34 - I love CodeChum
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Only the Even Ones
Code in C language

Transcribed Image Text:main.c
5. Only the Even Ones
1 #include<stdio.h>
by CodeChum Admin
2
3 - int main(void) {
I have an array of 100 numbers here with me that's
already in the code editor. I want you to print out only the
even numbers from the array and the message, "I love
CodeChum" beside each of the number.
int nums[1001
2, 3, 5, 100, 7, 3, 5, 3, 1, 4,
76, 77, 78, 79, 80, 54, 68, 61, 34, 33,
44, 49, 100, 5, 2, 87, 34, 33, 2, i,
4, 5, 8, 2, 1, 8, 5, 3, 2, 1,
88, 22, 23, 33, 48, 44, 46, 48, 50, 52,
45, 47, 49, 51, 53, 1, 1, 1, 1, 1,
{
7
9
Can you do that for me?
10
11
12
26. 19. 18, 1ỉ, 16,´15, 14, 13, 12, 11,
20,
11, 22, 33, 44, 55, 66, 77, 88, 99, 100,
1000, 2001, 3060, 4001, 5060, 6001, 7006, 8001, 9000, 10001
};
Output
13
14
Multiple lines containing a string.
15
16
17
2-- I love CodeChum
18
return 0;
100 - I love CodeChum
19 }
4-- I-love CodeChum
76-- I love CodeChum
78- I love CodeChum
80 - - I love CodeChum
I love CodeChum
54 - I
68 - - I love CodeChum
I love CodeChum
34- -
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education