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]
2 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]2 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
In a selection, the else clause executes ______________. a. always b. when the tested condition is false c. when the tested cond
riadik2000 [5.3K]
B. when the tested condition is false
7 0
1 year ago
You are choosing between two different window washing companies. The first charges $5 per window. The second charges a base fee
tatiyna

Answer:

20

Explanation:

8 0
10 months ago
How did Federal Express use the Internet to promote their image as service providers?
olga55 [171]
To get the word around so more people would know about them
3 0
1 year ago
Software refers to the physical components of a computer. _________________________ select one:
alexgriva [62]
Answer would be B false
3 0
2 years ago
Can someone please help its late
Mkey [24]

Answer:

The correct answer to this question is given below in the explanation section.

Explanation:

The labels to AS engine are given below from left to right respectively.

  1. Fan
  2. Compressor
  3. Combustion
  4. Turbine
  5. Mixer
  6. Nozzle

Fan: Drawer air into the engine

Compressor: Compressor spins the air very fast. This sequeezes or compresses the air

Combustion: Air and fuel are mixed together and ignited in the combustor and it gets super hot and gas expanded.

Turbine: The hot gases enter the turbine, causing the blade on it to spin.

Mixer: The mixer combines the hot air with outside air in the engine. This reduces the heat and noise that is coming from the engine.

Nozzle: nozzle is where the exhaust is coming out from the engine, creating thrust. It works according to newton's third law.

3 0
1 year ago
Other questions:
  • A moldboard was a feature and technological development of what device
    11·1 answer
  • When analyzing data sets, such as data for human heights or for human weights, a common step is to adjust the data. This can be
    9·1 answer
  • Why is it important to repay your student loans on time
    10·1 answer
  • How do I cancel a friend request?
    14·2 answers
  • Josh's boss asked him to write a letter to their customers explaining some upcoming price increases. But Josh was in a hurry to
    8·2 answers
  • Windows Hello supports multiple biometric authentication methods, including facial recognition. The failsafe method to authentic
    9·1 answer
  • You are the IT security manager for a retail merchant organization that is just going online with an e-commerce website. You are
    14·1 answer
  • What is the difference between being an affiliate and an independent station ?what are the benefits to being an affiliate
    9·1 answer
  • Consider the following class definitions. public class Computer { private String memory; public Computer) { memory = "RAM"; } pu
    5·1 answer
  • Who does online school on FLVS???????????????????
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!