Kotlinlearncs.online LogoJava
Return to List

Homework: Practice with Primitive Types

Created By: Geoffrey Challen
/ Version: 2020.6.0

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

  • declares a variable count of type int and initializes it to 88
  • declares a variable named temperature of type double and initializes it to 14.3
  • declares a variable letter of type char and initializes it to X
  • declares a variable named isCSAwesome of type boolean and initializes it to true

Related Lessons

Stuck? You may find these lessons helpful: