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
sergeinik [125]
3 years ago
9

Write a program that prompts the user to input two numbers—a numerator and a divisor. Your program should then divide the numera

tor by the divisor
Computers and Technology
1 answer:
icang [17]3 years ago
4 0

Answer:

#include <stdio.h>// inclusion of header file.

int main()// definition of main function.

{

  int Quotient,divisor; // declare the two numbers for operation.

  scanf("%d %d",&Quotient,&divisor); // take the user inputs by scanf() function.

  printf("The division result of the number = %f",Quotient/divisor);

// print statement to print the division.

   return 0; // return statement.

}

Output:

  • If the user input is 10 and 9 then the output is 1.
  • If the user input is 4 and 2 then the output is 2.

Explanation:

  • Firstly there is a file inclusion which helps to understand the input and output function
  • Then we declare two variables of integer type which take a value of integer type.
  • Then there is a scanf statement which takes the input from the user. The '%d' format specifies that the value is in an integer value.
  • Then there is a print statement that gives the divisor in floating value. The division operation is written in the printf statement which is used to print the value. '%f' display the value in decimal value.
You might be interested in
A key or combination of keys that complete an action more efficiently than using the mouse is called a(n) keyboard shortcut.
andreev551 [17]
The answer to your question is true
6 0
3 years ago
Point out the wrong statement :
hoa [83]

Answer:

d. None of the mentioned

Explanation:

Cloud computing can be defined as a type of computing that requires shared computing resources such as cloud storage (data storage), servers, computer power, and software over the internet rather than local servers and hard drives.

Generally, cloud computing offers individuals and businesses a fast, effective and efficient way of providing services.

Cloud computing comprises of three (3) service models and these are;

1. Platform as a Service (PaaS).

2. Infrastructure as a Service (IaaS).

3. Software as a Service (SaaS).

All of the following statements are true and correct because they are standard internet protocols;

I. Virtual appliances are becoming a very important standard cloud computing deployment object. This depicts the Platform as a Service (PaaS).

II. Cloud computing requires some standard protocols.

III. Cloud computing relies on a set of protocols needed to manage interprocess communications.

8 0
3 years ago
The Fibonacci numbers are 0, 1, 1, 2, 3, 5, 8, 13, ......., where each number is the sum of the two preceding numbers. Write a p
Andreas93 [3]
0,1,1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,1597
8 0
3 years ago
Which company provides a crowdsourcing platform for corporate research and development?
Nimfa-mama [501]

Answer:

D:InnoCentive

Explanation:

took test

7 0
3 years ago
A programmer notices the following two procedures in a library. The procedures do similar, but not identical,things.Procedure sq
PIT_PIT [208]

Answer:

Option B) Procedure Fourth (n), which returns the value n4

Explanation:

it the only one that makes sense because procedure 1, 2, and 3 return values n1, n2, and n3, it makes sense that the fourth procedure would return a value of n4.

8 0
2 years ago
Other questions:
  • Get user input as a boolean and store it in the variable tallEnough. Also, get user input as a boolean and store it in the varia
    8·1 answer
  • A business letter should always include the address of the sender.<br> True<br> False
    12·2 answers
  • 4. Who developed the first design technology program which had a
    12·1 answer
  • 14<br> Select the correct answer.<br> Which activity is a marketing technique?
    9·1 answer
  • Which wireless communication technology is most likely used when synchronizing device information to an automobile?
    14·1 answer
  • ¿Cuáles son los 5 Procesadores de textos on line más usados?
    14·1 answer
  • The following relation schema can be used to register information on the repayments on micro loans.
    13·1 answer
  • 2 Manter o autocontrole nos ajuda a evitar muitos problemas na nossa vida pessoal e no ambiente profissional. Em se tratando de
    14·1 answer
  • Cine stie repede va rog mult si repede
    9·1 answer
  • What amount of memory enough to store alatter of the alphabet or store a small number​
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!