Ul-Computer Science l Communication Resources, Course Tools Help v Virtual Class
ID: 3751569 • Letter: U
Question
Ul-Computer Science l Communication Resources, Course Tools Help v Virtual Classroom 2 Chapter 2 Resources Chapter 1 and 2 Quiz nd 2 Quiz Quiz ne Left:1:44:17 Samia Jabeen: Attempt 1 vTom" Save Question 9 (10 points) Code the statement that declares an double named Salary and initialize the variable to 23451.65 in one line of code Note: You do not need to write a whole program. You only need to write the code that it takes to create the correct output. Please remember to use correct syntax when writing your code, points will be taken off for incorrect syntax. DOLLExplanation / Answer
double Salary = 23451.65;
To declare a variable, we first write data type (here double) then space, then variable name(here Salary) then assignement operator(=) then vale to be assigned (here 23451.65) then use semicolon(;) to terminate statement.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.