Write the declaration of three string variables named win. place. and show.

NetherCraft 0
1.Write the declaration of three String variables named win , place , and show
2.Write the declaration of a String variable named title .
3.Write the declaration of a String variable named foreground and initialize it to “black” .
4. Two variables, num and cost have been declared and given values: num is an integer and cost is a double. Write a single statement that outputs num and cost to standard output. Print both values (num first, then cost), separated by a space on a single line that is terminated with a newline character. Do not output any thing else.
5. Write a single statement that will print the message “first is ” followed by the value of first, and then a space, followed by “second = “, followed by the value of second. Print everything on one line and go to a new line after printing. Assume that first has already been declared as a double and that second has been declared as an int. Assume also that the variables have already been given values.

Answer

Win, place and show are thd string variable which are connected to each other but they can change easily

Also Check This  How much water should I drink when taking creatine weighing 150lbs.?

Win, place and show are thd string variable which are connected to each other but they can change easily

String win, place, show;


Leave a Reply

Your email address will not be published. Required fields are marked *