Tutorial 2 Exercises

  • Write a program that makes two doubles: a and b. Put 5.2 in a and 3.14 in b. Then make a third double c and set it equal to a divided by b. Print out c to the screen to see the result.
  • Make a program that creates a String variable myString and put your favorite phrase in the variable. Then print out the phrase by using the variable, so that the whole world can see what a cool phrase you picked!

Like the site?
Let people know:
Digg! StumbleUpon
			Toolbar del.icio.us