Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1 Not yet answered Marked out of 10.00 Problem: Write a program that takes any 6 numbers from the user in a loop and

image text in transcribed
Question 1 Not yet answered Marked out of 10.00 Problem: Write a program that takes any 6 numbers from the user in a loop and then displays the sum of numbers which are greater than 10 and the sum of numbers which are less than 5. For example, if you enter the numbers: 2,6,3,11,12,8 then the sum of numbers greater than 10 will be the sum of 11 and 12 and the sum of numbers less than 5 will be the sum of 2 and 3 Sample output is shown below: Enter the number 1 >> 2 Flag question Enter the number 2 >> 3 Enter the number 3 >> 6 Enter the number 4 >> 8 Meeting now 13:24 Enter the number 5 >> 11 Enter the number 6 12 sum of numbers less than 5 is 5.000000 sum of numbers greater than 10 is 23.000000

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions