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
KonstantinChe [14]
3 years ago
8

The exercise instructions here are LONG -- please read them all carefully. If you see an internal scrollbar to the right of thes

e instructions, be sure to scroll down to read everything.
Given that an integer variable i and a floating-point variable f have already been declared and given values:
Write a statement in C that displays the values of i and f to standard output in the following format:
i = value -of - i f = value - of - f
Two Examples:
Example 1: if the values of i and f were 25 and 12.34 respectively, the output would be:
i = 25 f = 12.34
Example 2: if the values of i and f's value were 703 and 3.14159, (respectively) the output would be:
i = 703 f = 3.14159
Remember: you are GIVEN i and f-- that means they are already declared and they already have values ! Don't change their values by assigning or initializing them! Just print them out the way we have shown above. Just write one statement to produce the output.
Remember: you don't know what the actual values of i and f are-- they are unlikely to be the values used in the examples above! Remember: in your output you must be displaying both the name of the variable (like i) and its value.
Computers and Technology
1 answer:
olga2289 [7]3 years ago
6 0

Answer:

The C statement is given below with appropriate comments

Explanation:

printf("i=%d f=%f", i, f);

// printf is used to write a values to standard output. In c++, we use cout.

// %d is a control string to display integer value and %f is a control string to display floating point value.

// i represents the integer value, corresponding to %d

// f represents the float value, corresponding to %f

You might be interested in
which of the following electromagnetic waves are not used for communication? a.gamma rays b.microwaves c.infrared waves d.radio
Flura [38]

Gamma rays are not used for communication.

-- We have no safe way to generate them.
-- We have no cheap way to detect them.
-- We have no way to impress information on them (modulate them).
-- They're dangerous.

Otherwise they're ideal for communication.


3 0
3 years ago
In addition to the cost of legal services and the cost of treatment, which of the following are considered direct costs for work
Mrrafil [7]

Answer:

what are the options for the question

3 0
2 years ago
What is the advantage of learning through story compared to learning through personal experience?
Inessa [10]

Answer:

Personal Experience

Explanation:

If a story is based on a personal experience then yes, the two doesn't matter. <em>However</em>, usually learning through personal experience is better because you learn firsthand while stories are written from a different perspective.

6 0
3 years ago
Read 2 more answers
A notebook computer usually is more expensive than a desktop computer with the same capabilities because it ____.
KonstantinChe [14]
Because it is more portable.
6 0
3 years ago
Borrowing other images and videos are allowed as long as ________?​
My name is Ann [436]

Answer:

as long as there appropriate

6 0
2 years ago
Other questions:
  • Attention merchants define
    5·1 answer
  • When did Kodak introduce film photography to the commercial market?
    10·2 answers
  • Stuart wants to delete some text from a slide. What should Stuart do?A. From the Review tab, choose Highlight text and then pres
    7·2 answers
  • Which is true about TCP and UDP? Choose two answers.
    15·1 answer
  • Please help again if anyone doesn't mind
    15·1 answer
  • When using a function to preform a calculation how would you select the range of numbers to use
    13·1 answer
  • If I'm screen sharing and I plug in a HDMI, will it screen share what the HDMI is plugged into, and can you talk at the same tim
    11·1 answer
  • Assuming 8-bit 2's complement notation, what is the result of subtracting 00001001 from 00001101?
    11·1 answer
  • 1. Write a program to input four numbers and store them in variables.
    6·1 answer
  • The illustration shows different types of text language.
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!