Instructions: Section C Practical Use Codeblocks/www.onlinegdb.com to write programs. Copy and paste the program in the answer part Write a program that accepts 10 integers form the user and then displays the sum of numbers which are less than 5 and the sum of numbers which are greater than 10 using loops. Sample Output: Enter a number 113 Enter a number 2 Enter a number 3 Enter a number 4 7 Enter a number Enter a number Enter a number 7 Enter a number 8 Enter a number 98 Enter a number 10 11 Sum of numbers less than 5 is 11 Sum of numbers greater than 10 is 11

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section: Chapter Questions
Problem 9PP
icon
Related questions
Question
C code:
Section C Practical
Instructions:
Use Codeblocks/www.onlinegdb.com to write programs.
Copy and paste the program in the answer part
Write a program that accepts 10 integers form the user and then displays the sum of numbers which are less than 5 and the sum of numbers
which are greater than 10 using loops.
Sample Output:
Enter a number 1 : 3
Enter a number 2 : 4
Enter a number 3 : 5
Enter a number 47
Enter a number 59
Enter a number 6 1 3
Enter a number 7: 1
Enter a number 85
Enter a number 98
Enter a number 10 11
Sum of numbers less than 5 is 11
Sun of numbers greater than 10 is 11
Transcribed Image Text:C code: Section C Practical Instructions: Use Codeblocks/www.onlinegdb.com to write programs. Copy and paste the program in the answer part Write a program that accepts 10 integers form the user and then displays the sum of numbers which are less than 5 and the sum of numbers which are greater than 10 using loops. Sample Output: Enter a number 1 : 3 Enter a number 2 : 4 Enter a number 3 : 5 Enter a number 47 Enter a number 59 Enter a number 6 1 3 Enter a number 7: 1 Enter a number 85 Enter a number 98 Enter a number 10 11 Sum of numbers less than 5 is 11 Sun of numbers greater than 10 is 11
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Types of Loop
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,