subject

Given an integer variable i and a floating-point variable f, that have already been given values, write a statement that writes both of their values to standard output in the following format:
i=value-of-i f=value-of-f
thus, if i's value were 25 and f's value were 12.34, the output would be:
i=25 f=12.34
but you don't know what i's value and f's value are. they might be 187 and 24.06. if that's what their values are, the output from your statement should be:
i=187 f=24.06
on the other hand, they might be 19 and 2.001. if that's what their values are, the output from your statement should be:
i=19 f=2.001
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: in your output you must be displaying both the name of the variable (like i) and its value.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:10
Assume that minutes is an int variable whose value is 0 or positive. write an expression whose value is "undercooked" or "soft-boiled" or "medium-boiled" or "hard-boiled" or "overcooked" based on the value of minutes. in particular: if the value of minutes is less than 2 the expression's value is "undercooked"; 2-4 would be a "soft-boiled", 5-7 would be "medium-boiled", 8-11 would be "hard-boiled" and 12 or more would be a "overcooked".
Answers: 1
question
Computers and Technology, 24.06.2019 23:30
Adrian has decided to subscribe for a new internet connection. he wants a high speed connection so that he can stream video content smoothly. which access technology would you advise adrian against using?
Answers: 1
question
Computers and Technology, 25.06.2019 07:30
The can be used to paste text in any order.
Answers: 1
question
Computers and Technology, 25.06.2019 07:50
The “tab” key can a. create extra cells in a word table *b. move from cell to cell in a word table c. move from the top of a column to the bottom of a column in a word table d. none of the above a. none of these answers are correct b. move from cell to cell in a word table c. move from the top of a column to the bottom of a column in a word table d. create extra cells in a word table
Answers: 2
You know the right answer?
Given an integer variable i and a floating-point variable f, that have already been given values, wr...
Questions