Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

#include stdio.h int main(void) { int num; double item; double sum = 0; puts(Enter the number of values to be added up: ); scanf(%d, &num);

#include stdio.h int main(void) { int num; double item; double sum = 0; puts(Enter the number of values to be added up: ); scanf(%d, &num); for (int i = 1; i = num; i++) { scanf(%lf, &item); sum += item; } printf(Sum of the %d items above is: %10.2f, num, sum); }

Step by Step Solution

3.38 Rating (145 Votes )

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Systems analysis and design

Authors: kenneth e. kendall, julie e. kendall

8th Edition

135094909, 013608916X, 9780135094907, 978-0136089162

More Books

Students also viewed these Mathematics questions

Question

Explain the need for and importance of co-ordination?

Answered: 1 week ago

Question

Explain the contribution of Peter F. Drucker to Management .

Answered: 1 week ago

Question

What is meant by organisational theory ?

Answered: 1 week ago

Question

What is meant by decentralisation of authority ?

Answered: 1 week ago

Question

Whose primary responsibility is it to test computer programs?

Answered: 1 week ago

Question

Define the term metadata. What is the purpose of metadata?

Answered: 1 week ago