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
Illusion [34]
3 years ago
13

Write a complete program thatdeclares an integer variable,reads a value from the keyboard into that variable, andwrites to stand

ard output the square of the variable's value.besides the number, nothing else should be written to standard output.
Mathematics
1 answer:
ch4aika [34]3 years ago
4 0
#include

int main()
{
int num;
scanf("%d", &num);
printf("%d", num*num);
return 0;
}
You might be interested in
A bag contains 10 red marbles, 15 yellow marbles and 5 green marbles. What is the probability of drawing a red or green marble f
Volgvan
Probability = 

             (number of ways it can come out the way you want)
divided by
             (total number of ways it can come out).

Total number of ways to draw a marble = 30 (marbles in the bag).

Number of ways it can succeed = 15 (number of red or green ones)

Probability = 15/30 = 1/2 = 50% .
8 0
3 years ago
Read 2 more answers
Find the solution of the given initial value problem in explicit form. y′=(1−5x)y2, y(0)=−12 Enclose numerators and denominators
Nata [24]

Answer:

The solution is y=-\frac{12}{12x-30x^2+1}.

Step-by-step explanation:

A first order differential equation y'=f(x,y) is called a separable equation if the function f(x,y) can be factored into the product of two functions of x and y:

f(x,y)=p(x)h(y)

where p(x) and h(y) are continuous functions.

We have the following differential equation

y'=(1-5x)y^2, \quad y(0)=-12

In the given case p(x)=1-5x and h(y)=y^2.

We divide the equation by h(y) and move dx to the right side:

\frac{1}{y^2}dy\:=(1-5x)dx

Next, integrate both sides:

\int \frac{1}{y^2}dy\:=\int(1-5x)dx\\\\-\frac{1}{y}=x-\frac{5x^2}{2}+C

Now, we solve for y

-\frac{1}{y}=x-\frac{5x^2}{2}+C\\-\frac{1}{y}\cdot \:2y=x\cdot \:2y-\frac{5x^2}{2}\cdot \:2y+C\cdot \:2y\\-2=2yx-5yx^2+2Cy\\y\left(2x-5x^2+2C\right)=-2\\\\y=-\frac{2}{2x-5x^2+2C}

We use the initial condition y(0)=-12 to find the value of C.

-12=-\frac{2}{2\left(0\right)-5\left(0\right)^2+2C}\\-12=-\frac{1}{c}\\c=\frac{1}{12}

Therefore,

y=-\frac{2}{2x-5x^2+2(\frac{1}{12})}\\y=-\frac{12}{12x-30x^2+1}

4 0
3 years ago
What is 17/18 + 1/20
MrMuchimi

Answer:

179/180

Step-by-step explanation:

<em><u>Step One</u></em>

Find the prime factors of 18 and 20

18:3*3*2

20: 2 * 2 * 5

<em><u>Step Two</u></em>

You need two 2s two 3s and one 5 for the common denominator

The common denominator is 2 * 2 * 3 * 3 * 5 = 180

<em><u>Step Three</u></em>

Put the two fractions over 180

\dfrac{17*10}{10*18} + \dfrac{1*9}{10*18}

\dfrac{170}{180} + \dfrac{9}{180}

179/180

8 0
3 years ago
A population of bacteria in a petri dish is modeled by the function p(x)=88x , where x is the number of hours that have elapsed
pochemuha

Answer:

3.14

Step-by-step explanation:

The answer is going to be 3.14

Hope it helps!

4 0
3 years ago
Pls help or your mom will kidnap you
andrey2020 [161]
I think it is option 1 sorry if wrong
3 0
3 years ago
Read 2 more answers
Other questions:
  • Round the following number to the nearest<br> ten thousands place<br> 56,252
    13·2 answers
  • Christopher borrowed $22,000 for 7 years. At the end of the loan, he had paid a total of $27,390. Find the interest rate on the
    10·1 answer
  • suppose y varies directly with x. when x is 14, why is 7. write the equation that relates x and y. Be sure to simply your answer
    9·1 answer
  • What is the corresponding polynomial
    9·1 answer
  • If a polynomial function f(x) has roots -8, 1, and 6i, what must also be a root of f(x)?
    14·1 answer
  • Write the number 3.8 in the form a/b using integers
    12·1 answer
  • PLEASE HELP ME !!!!!!!!!!!!!!!!!!!!
    13·1 answer
  • Help please !!!!!!!!!!
    14·1 answer
  • Please help is this undefined or 0?
    13·2 answers
  • Yall its not 18 it is 15.5 i did the math and calculated it to find the anwser
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!