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
Dmitry [639]
2 years ago
14

Write a c program that asks the user

Computers and Technology
1 answer:
faltersainse [42]2 years ago
7 0

Answer:

#include <stdio.h>

int main()  

{

int x;

float y;

printf("Input total distance in km: ");

scanf("%d",&x);

printf("Input total fuel spent in liters: ");

scanf("%f", &y);

printf("Average consumption (km/lt) %.3f ",x/y);

printf("\n");

return 0;

}

You might be interested in
What is a computer network that provides connectivity in a geographic area or region larger than that covered by a local area ne
lina2011 [118]

Answer:

The correct answer for the given question is "Metropolitan Area Network"

Explanation:

The metropolitan area network connect the user with a geographic area of the size of  metropolitan area.Metropolitan area network connect LAN i.e " local area network " to a single larger network thats provide efficient  connection to the WAN network.Their are many advantage to use metropolitan area network which are mention above .

  • Provides the better security then other network.
  • Cheaper lost when we connect MAN with WAN.
  • If we use MAN network then data will be fastly transferred.
6 0
3 years ago
How is information sent across the internet binary
Annette [7]

Answer:

Binary information must be encoded in some way before transmission over the Internet. ... Copper wire is used to transmit binary messages using electricity - a voltage on the wire means one state, and no voltage means the other. Fiber-optic cables, on the other hand, use light (on or off) to transmit a binary message.

8 0
2 years ago
Answer this and you get free 100 points
Agata [3.3K]

Answer:

thanks my dude I needed it

5 0
3 years ago
Read 2 more answers
Quality, personal attention, leadership, and respect are examples of what?
tankabanditka [31]
A good employee, everything u named is a good example of a good employee
8 0
3 years ago
Read 2 more answers
Please state 5 lasting effects about Artificial Intellegence
agasfer [191]

Oxytocin’s

Civic

Icijcuuc

Ificiucuc

Ificifuudu

6 0
2 years ago
Read 2 more answers
Other questions:
  • The presentation layer describes the layer where computers interact with _____
    8·2 answers
  • How does Frankenstein feel about his creation?
    15·1 answer
  • Defensive programming is sometimes referred to as _________.
    5·1 answer
  • Define the function max2 that takes two integers as arguments and returns the largest of them. Then define the function max_list t
    11·1 answer
  • What is the best way to protect against the loss of important files
    15·1 answer
  • Why is an increase in tax rate not necessarily increase government revenue​
    10·1 answer
  • Im boing exam help please In a category-based course grading system, teachers weigh a student's performance in all courses. all
    7·2 answers
  • What two windows security updates do most organizations always patch?
    7·1 answer
  • What is the computer system cycle called?
    13·1 answer
  • "write a program to play and score the paper-rock-scissor game. each of two users types in either p, r, or s. the program then a
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!