Practice with Primitive Types 2
Write a snippet of code—not a function— that:
- declares a variable
digit
of typechar
and initializes it toB
- declares a variable named
airTemperature
of typedouble
and initializes it to78.8
- declares a variable
score
of typeint
and initializes it to99
- declares a variable named
semesterHasStarted
of typeboolean
and initializes it totrue