first = input("Please input your first name: ")
last = input("Please input your last name: ")
print(last+", "+first)
I hope this helps!
Answer:
An error will be occurred here. In C++ a function must be like
returntype function_name(){
}
but the functions in given class does not have returntype given. So there will be a syntax error.
If the returntype is defined then the code does not show any output since nothing is printed in the main function.
Answer:
<h2>ELEMENT</h2>
Explanation:
<h3>hope it helps you!!!</h3>
Answer:
2
Explanation:
The output of the Java program is 2. The public Vehicle class is defined with the class variable 'counter'. When a Vehicle class object is instantiated, the counter variable increments by one.
In the program, the two instances of the class are created, incrementing the counter variable to two, the print statement outputs 2 as the result of the program.
Answer:
"double result=6.759;" is the correct answer for the above question.
Explanation:
- In c-programming language, the double is a data type which stores the decimal value up to 6 decimal point.
- This data type takes 8 bytes space in memory when it is used in the c-programming language.
- When the user wants to declare the double data type, then he should need to declare by the help of the following syntax-- double variable_name_or _identifier_name;
- When the user wants to declare the double data type and initialize the value on its then he can do this with the help of the following syntax--double variable_name_or _identifier_name= value_which_needs_to_store;
- The above question asked the one-line statement which declares the result variable of double data type and initializes the "6.759" value on its then he can do this by the help of "double result=6.759;" statement which is described above. Hence the answer is "double result=6.759;".