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).
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.
Chapter10: Pointers
Section: Chapter Questions
Problem 1PP
Related questions
Question
c not c++
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 3 steps with 2 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
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L