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 23:50
List a few alternative options and input and output over the standerd keyboard and monitor. explain their functioning in details.
Answers: 2
question
Computers and Technology, 24.06.2019 07:30
Jason is working on a microsoft excel worksheet and he wants to create a print preview shortcut. his teacher asks him to access the customization option to create the new shortcut. which two tabs should jason select to place the print preview shortcut on the worksheet toolbar? a. new tab (custom) and new group (custom) b. new file tab (custom) and new tab (custom) c. new custom group and new command d. new custom tab and new command
Answers: 2
question
Computers and Technology, 24.06.2019 17:40
Write an assembly language program to input a string from the user. your program should do these two things: 1. count and display the number of words in the user input string. 2. flip the case of each character from upper to lower or lower to upper. for example if the user types in: "hello there. how are you? " your output should be: the number of words in the input string is: 5 the output string is : hello there. how are you?
Answers: 2
question
Computers and Technology, 25.06.2019 02:00
What type of multimedia is a game cd? game cds are examples of multimedia
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
question
Mathematics, 15.07.2019 10:00
question
Mathematics, 15.07.2019 10:00
question
Mathematics, 15.07.2019 10:00
Questions on the website: 13722363