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
Ksenya-84 [330]
3 years ago
8

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
Computers and Technology
1 answer:
Wewaii [24]3 years ago
6 0

Answer:

Follows are the given statement to this question:

printf("i=%d f=%f", i, f);//print value

Explanation:

The full code to the given question:

code:

#include <stdio.h>//defining header file

int main()// main method

{

   int i;//declaring integer variable

   float f;//declaring float variable

   i=25; //assign integer value

   f=12.34;//assign float value

   printf("i=%d f=%f", i, f);//print value

   i=703;//assign integer value

   f=3.14159;//assign float value

   printf("\n");//for line break

   printf("i=%d f=%f", i, f);//print value

   return 0;

}

Output:

i=25 f=12.340000

i=703 f=3.141590

In the above-given code, the two variable "i and f" is declared, that holds integer and floating-point value in its respective variable and use the print method, to print "i and f" variables value.  

You might be interested in
Write the formal descriptions of the following sets: (a) The set containing the numbers 5, 9, and 27. (b) The set that contains
Dominik [7]

Answer: a) =\left \{ 5,\,9,\,27 \right \}

(b) \left \{ x\ : X\varepsilon\mathbb{N} \right \text{and}\ x

(c) \left \{\epsilon \right \}

(d) \left \{\right \}=\phi

Explanation:

The formal description of the given sets are as follows :-

a) The set containing the numbers 5, 9, and 27.

=\left \{ 5,\,9,\,27 \right \}

(b) The set that contains all the natural numbers less than 2.

\left \{ x\ : X\varepsilon\mathbb{N} \right \text{and}\ x

(c) The set containing the empty string.

We know that in formal description, the empty string is denoted with \epsilon.

Thus, the required set : \left \{\epsilon \right \}

(d) The set containing nothing at all.

\left \{ \right \}=\phi

7 0
3 years ago
Which setting indents all but the first line of a paragraph by the selected length?
Phoenix [80]

Answer:

Hanging

Explanation:

5 0
3 years ago
SUWIDHA stands for .​
Anettt [7]
SUWIDHA stands for Single User-friendly Window Disposal & Help-line for Applicants.

Hope it helps
5 0
3 years ago
What specific type of hardware card inserts into a web server that contains one or more co-processors to handle ssl/tls processi
o-na [289]
A <span>specific type of hardware card which is inserted into a web server that contains one or more co-processors to handle ssl/tls processing is 
</span>SSL/TLS Accelerator.
8 0
4 years ago
Explain any one method of creating a presentation.
Anni [7]

Answer:

bullet points

Explanation:

easy to read

short and to the point

contain key information

4 0
3 years ago
Other questions:
  • Omar’s teacher has asked him to send her a PDF copy of his presentation via email.
    11·1 answer
  • Computer-integrated manufacturing (CIM) includes manufacturing systems that have:
    7·1 answer
  • Which is the best method of marketing a game to casual players?
    14·2 answers
  • Explain free space allocation?
    9·1 answer
  • A _________ is the broadcast of various types of media over the web.
    10·2 answers
  • To select all the text in a document, press ____.
    12·2 answers
  • Which criterion can be used to select the appropriate type of network media for a network?
    8·1 answer
  • John works for Internal Computer Specialists, a company that focuses on helping small business owners resolve MIS infrastructure
    12·1 answer
  • What is the point of brainy when other people have to answer your questions but not the cumputer
    9·1 answer
  • Choose all items that are true about the two example of HTML shown on the right.
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!