1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Alex_Xolod [135]
1 year ago
14

function in c that takes three decimal numbers as inputs and finds the sum of those inputs and returns the sum

Mathematics
1 answer:
kozerog [31]1 year ago
7 0

The function that takes three decimal numbers as inputs and finds the sum of those inputs and returns the sum has been given below

What is programming?

Program is the set of instructions given to the computer so that the computer can execute those instructions. The act of writing program is called programming.

The program has been shown below

#include<stdio.h>

using namespace std;

int main()

{

double n1, n2, n3;

double s;

printf("Enter first numbers");

scanf(%lf, &n1);

printf("Enter second numbers");

scanf(%lf, &n2);

printf("Enter third numbers");

scanf(%lf, &n3);

s = n1 + n2 + n3;

printf("Sum = %f", s);

return 0;

}

To learn more about programming refer to the link-

brainly.com/question/23275071

#SPJ4

You might be interested in
The product of 4 and a number f decreased by 2 is 15
Debora [2.8K]

Answer:  The number is:  "2 " .

__________________________________________

Step-by-step explanation:

__________________________________________

Write the expression; which is an equation, as follows:

__________________________________________

    " 4x − 12 = 2(-x) " ;  in which "x" represents "the number for which we shall                                       solve" .

___________________________________________

Note:  

If the "number" = "x" ;  the "opposite of the number"  =  " -x " ;

___________________________________________

Rewrite as:  " 4x − 12 = -2x " ;

_____________________________________________

    →  Add "12" ; & add "2x" ; to EACH SIDE of the equation:

                     4x − 12 + 12 + 2x = -2x + 12 + 2x ;

          to get:    6x  = 12  ;

____________________________________________________

Now, divide each side of the equation by "6" ;

    to isolate "x" on one side of the equation; & to solve for "x" ;

____________________________________________________

                        6x / 6  =  12 / 6 ;

                   to get:    x = 2 .

____________________________________________________

Answer:  The number is:  "2 " .

____________________________________________________

Let us check our answer, by plugging in "2" for "x" in our original equation:

_____________________________________________________

       →   " 4x − 12 = 2(-x) " ;

 Let us plug in "2" for "x" ; to see if the equation holds true; that is; if both side of the equation are equal; when "x = 2" ;

       →   " 4(2) − 12 = ?  2(-2) ??

       →    8 − 12 = ?  -4 ? ;

       →    -4 = ? -4 ??  Yes!

__________________________________________________    

7 0
3 years ago
Read 2 more answers
A good estimate of 213 is 8,000. Which of the<br> following is a good estimate of 226 ?
ziro4ka [17]

Answer:

E. 64,000,000

Step-by-step explanation:

2^26 = (2^13)^2

But 2^13 = 8000 so

2^26 =  (8,000)^2

= 64,000,000

7 0
3 years ago
A function g(x) decreases by 7 over every unit interval in x and g(0) = 0
Zina [86]
Are you asking what the answer is because you are not asking us anything. I would really like to help you out but I need to know what the question is first.
5 0
3 years ago
If f(x) = (-x)^3, what is f(-2)?<br> -6<br> -8<br> 8<br> 6
lys-0071 [83]

Answer:

The answer is 8

Step-by-step explanation:

Plug -2 in for x. The double-negative inside the parenthesis makes it positive, then do the exponent.

6 0
3 years ago
Read 2 more answers
Which of the following is the point and slope of the equation y + 5 = 3(x + 9)?
Tatiana [17]

Answer:

Option B, (-9, -5), 3

Step-by-step explanation:

<u>The point slope form in:  y - y1 = m(x - x1)</u>

m is the slope

(x1, y1) is the point

<u>Step 1:  Determine what the slope and point is their equation</u>

y + 5 = 3(x + 9)

3 is the slope

(-9, -5) is the point

Answer:  Option B, (-9, -5), 3

3 0
3 years ago
Other questions:
  • Could someone pleaseeeeee help me with my math! Thank you &lt;3
    15·1 answer
  • Find (f-g)(x) if f(x)=3x-5 and g(x)=x2-5x+4
    10·1 answer
  • Somebody please help me with this
    13·1 answer
  • A survey reported in Time magazine included the question ‘‘Do you favor a federal law requiring a 15 day waiting period to purch
    7·1 answer
  • Will mark brainliest for whoever gives me the right answer and who answers first!
    5·1 answer
  • Need help, no links. Thanks
    10·1 answer
  • Isabel has ridden 16 miles of a bike course. The course is 80 miles long. What percentage of the course has Isabel ridden so far
    12·2 answers
  • A town in east Texas received 35 inches of rain in two weeks. If it kept raining at this rate for a 31−day month, how much rain
    10·1 answer
  • The breeds of all cats at an animal rescue shelter<br>step by step​
    6·2 answers
  • Help out we all need help regardless of anything
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!