88.3k views
2 votes
Write a program that has a Boolean variable that represents whether or not it is raining outside. Your program should print I'm going to dance in the rain! if it is raining, and I'm going to dance in the sun! if it is not raining.

User Kalu
by
4.5k points

1 Answer

3 votes

Answer: I ain't sure what language are you using, so I'm doing it in pseudocode:

bool raining = false

if raining == true

then print " I'm going to dance in the rain!"

else print "I'm going to dance in the sun!"

User Ahmed Masud
by
5.4k points