Kotlinlearncs.online LogoJava
Return to List

Solve: Practice with Variable Declaration and Initialization 0

Created By: Geoffrey Challen
/ Version: 2022.6.0

Write a snippet of code—not a function— that:

  • declares a variable lucky of type char and initializes it to 8
  • declares a variable named eachDay of type double and initializes it to 1.0
  • declares a variable age of type int and initializes it to 88
  • declares a variable named learnCSOnline of type boolean and initializes it to true

Related Lessons

Stuck? You may find these lessons helpful: