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]
4 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]4 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
Essay on the importance of computer and internet 250 word​
Alona [7]

With the significant progress in technology, the importance of the internet has only multiplied with time. The dependence on the internet has been because of multiple advantages that it has to offer – for instance reducing the work stress and changing the face of communication most importantly. By employing the correct usage of the internet, we can find various information about the world. The internet hosts Wikipedia, which is considered to be one of the largest best-composed reference books kept up by a vast community of volunteer scholars and editors from all over the world. Through the internet, one may get answers to all their curiosity. In the education sector too, it plays a major role, especially taking into consideration the pandemic. The Internet during the pandemic provided an easy alternative to replace the traditional education system and offers additional resources for studying, students can take their classes in the comforts of their homes. Through the internet, they can also browse for classes – lectures at no extra cost. The presence of the internet is slowly replacing the use of traditional newspapers. It offers various recreational advantages as well. It can be correctly said that the internet plays a great role in the enhancement of quality of life.

6 0
3 years ago
Read 2 more answers
What is the full form of GDP
Andrej [43]

Answer:

gross domestic product

Explanation:

there are 4 different types, I don't know if that was what you were looking for but

I hope it helped :)

5 0
3 years ago
Which data type is 2.5?<br> single<br> int<br> float<br> string
Ivenika [448]

2.5 is an example of a float.

Floats are numbers that have decimals.

5 0
3 years ago
Carol typed a memo to send to everyone in her department. To create this memo, she used a _____.
aleksley [76]

she used a word processor

8 0
4 years ago
Read 2 more answers
______A computer program may only be constructed in a high level language. (T/F)
NeTakaya

Answer:

False.

Explanation:

A computer program can not only constructed in a high level language but also in low level language such as assembly language used for microprocessor for ex-8085 microprocessor,8086 microprocessor ,ARM assembly language and there are many more.

High level languages are programmer friendly they are easily understood by the programmers because they uses english words while low level languages are difficult because they uses binary language 0's or 1's.

Hence the answer to this question is False.

5 0
4 years ago
Other questions:
  • PLEASE HELP ME ASP!!!
    11·2 answers
  • Suppose your name was George Gershwin. Write a complete program that would print your last name, followed by a comma, followed b
    11·2 answers
  • This type of software works with end users, application software, and computer hardware to handle the majority of technical deta
    12·1 answer
  • Many PC operating systems provide functionality that enables them to support the simultaneous execution of multiple applications
    13·1 answer
  • How is digital footprint created ?
    15·1 answer
  • Which of the following is a common sense safety procedure that can help prevent electrical accidents?
    15·1 answer
  • 1) Given what you have learned about computers and information technology thus
    6·1 answer
  • Look out for users with this photo.
    15·2 answers
  • What is the output of the following C++ code? int list[5] = {0, 5, 10, 15, 20}; int j; for (j = 0; j &lt; 5; j++) cout &lt;&lt;
    11·1 answer
  • How does the technology affect you daily living? Give situations where you use technology and how it helped you.​
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!