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
Solve x2 + 8x − 3 = 0 using the completing-the-square method.
lisabon 2012 [21]
(a+b)^2=a^2+2ab+b^2\\------------------\\\\x^2+8x-3=0\ \ \ |add\ 3\ to\ both\ sides\\\\x^2+2x\cdot4=3\ \ \ |add\ 4^2\ to\ both\ sides\\\\x^2+2x\cdot4+4^2=3+4^2\\\\(x+4)^2=3+16\\\\(x+4)^2=19\iff x+4=-\sqrt{19}\ or\ x+4=\sqrt{19}\\|subtract\ 4\ from\ both\ sides\\\\\boxed{x=-4-\sqrt{19}\ or\ x=-4+\sqrt{19}}
3 0
3 years ago
Read 2 more answers
Which is a proportional relationship<br> y=x+1<br> y=3x+3<br> y=4x<br> y=8+x
yulyashka [42]

Answer:

4=4x

Step-by-step explanation:

the formula y=mx+b

corresponds to y=slope+y intercept

all proportional relationships start on the origin so the y-intercept is always 0

the fact that the equation y = 4x doesn't have an intercept shows its proportional this can go with any similar equation like y = 4.5x

8 0
3 years ago
Find the y-intercept and the slope of 12x-4y=7
den301095 [7]

Answer:

The slope is 3 and the y intercept is -7/4

Step-by-step explanation:

We need to get the equation in the form

y = mx+b where m is the slope and b is the y intercept

12x - 4y =7

Subtract 12x from each side

12x-12x -4y = -12x +7

-4y = -12x+7

Divide each side by -4

-4y/-4 = -12x/-4 +7/-4

y = 3x + -7/4

The slope is 3 and the y intercept is -7/4

8 0
3 years ago
Read 2 more answers
The estimated monthly sales of Mona Lisa paint-by-number sets is given by the formula q = 104e−3p2 + p, where q is the demand in
Alona [7]

Answer:

The price elasticity of demand is 0

Step-by-step explanation:

The demand function for monthly sales is given as:

q = 104e^-3p^2 + p

The price elasticity of demand E is obtained by differentiating q with respect to p

E = dq/dp = (-6p + 1) × 104e^-3p^2 +p =

When p = ¥200

E = (-6×200 + 1) × 104e^-3(200)^2 + 200 = -1199 × 104(0) = -1199 × 0 = 0

4 0
3 years ago
Help pls! Brainliest!
blagie [28]

Answer:

y =-3000x +12000

Step-by-step explanation:

answer is

1)   12000 is the constant therefore when the number of hours is 0 the tickets are 12000

2)  the number of tickets (y) are reducing by 3000 for each hour(x). thus the coefficient of variable x should be -3000  (negative because it is reducing)

8 0
3 years ago
Other questions:
  • ASAP HELP FOR NUMBER 12, Thank you so much!!! :)
    7·1 answer
  • WHAT NUMBER IS MISSING IN THE FOLLOWING SERIES: 4 --‐ 5 --‐ 7 --‐ 10 --‐ 14 --‐ 19 --‐ ___
    9·1 answer
  • The expression 4x, gives the perimeter of a square with a side length of x units. What is the perimeter of a square with a side
    10·1 answer
  • Simplify the expression: 7 + -7x + -8 - 9x + 5
    14·2 answers
  • There are 36 students playing tag at recess. This is 6 times as many as are playing hopschotch. Which model shows this compariso
    15·1 answer
  • jacobs puzzle has 84 pieces. Jacobs puts together 27 pieces in the morning. he puts together 38 more pieces in the afternoon. ho
    9·2 answers
  • A committee raised 7/9 of their target goal last year and another 1/9 of the goal this year. What fraction of their goal has bee
    6·2 answers
  • HELP ME ASAPHelp me solve this so I can understand it more..plz show me work
    14·1 answer
  • Alonso leans a 28-foot ladder against a wall so that it forms an angle of 65° with the
    13·1 answer
  • Helppppp please please please
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!