Practice with Primitive Types 4
Write a snippet of code—not a function— that:
- declares a variable
mark
of typechar
and initializes it toA
- declares a variable named
grade
of typedouble
and initializes it to98.8
- declares a variable
age
of typeint
and initializes it to42
- declares a variable named
summerIsOver
of typeboolean
and initializes it totrue