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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 14:50, williamsgregg5214
Drag each label to the correct location on the image list the do’s and don’ts of safeguarding your password. a. keep yourself logged in when you leave your computer. b. don’t write your password down and leave it where others can find it. c. share your password with your friends. d.each time you visit a website, retain the cookies on your computer. e. use a long password with mixed characters.1. do's 2. don'ts
Answers: 2
image
Computers and Technology, 22.06.2019 19:00, alyssashae1818
Which parts of a presentation should be the most general? a. introduction and conclusion b. introduction and outline c. outline and conclusion d. outline and body
Answers: 1
image
Computers and Technology, 22.06.2019 20:10, ianmartin6080
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
image
Computers and Technology, 23.06.2019 08:00, Buddy01
Match the items with their respective descriptions.
Answers: 1
You know the right answer?
Given an integer variable i and a floating-point variable f, that have already been given values, wr...

Questions in other subjects:

Konu
Mathematics, 31.08.2021 18:20
Konu
Physics, 31.08.2021 18:20