Kotlinlearncs.online LogoJava
Return to List

Homework: Practice with Primitive Types 4

Created By: Geoffrey Challen
/ Version: 2021.8.0

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

  • declares a variable mark of type char and initializes it to A
  • declares a variable named grade of type double and initializes it to 98.8
  • declares a variable age of type int and initializes it to 42
  • declares a variable named summerIsOver of type boolean and initializes it to true

Related Lessons

Stuck? You may find these lessons helpful: