Procedure 1. Define a function named procedurel () that will be called from main () function, the function will: 1. Use a for loop to print "Hello World!" 10 times. 2. Use another for loop and prompt a message and ask the user to enter 5 different values for num1, and 5 different values for num2; num1 and num2 should be float data types. 3. Calculate the sum of the 5 input num1 and the sum of the 5 input num2, and then calculate the product of these two sums, and print the result on the screen. (Hint: you may want to calculate the sum whenever the number is taken from the scanf function call).

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter9: Completing The Basics
Section9.4: Character Manipulation Functions
Problem 6E
icon
Related questions
Question

c not c++

Procedure 1. Define a function named procedurel () that will be called from main ()
function, the function will:
1. Use a for loop to print "Hello World!" 10 times.
2. Use another for loop and prompt a message and ask the user to enter 5 different values
for num1, and 5 different values for num2; numl and num2 should be float data types.
3. Calculate the sum of the 5 input numl and the sum of the 5 input num2, and then
calculate the product of these two sums, and print the result on the screen. (Hint: you
may want to calculate the sum whenever the number is taken from the scanf function
call).
Transcribed Image Text:Procedure 1. Define a function named procedurel () that will be called from main () function, the function will: 1. Use a for loop to print "Hello World!" 10 times. 2. Use another for loop and prompt a message and ask the user to enter 5 different values for num1, and 5 different values for num2; numl and num2 should be float data types. 3. Calculate the sum of the 5 input numl and the sum of the 5 input num2, and then calculate the product of these two sums, and print the result on the screen. (Hint: you may want to calculate the sum whenever the number is taken from the scanf function call).
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Types of Function
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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L