Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

C++ Else

int time = 20;
if (time < 18) {
  cout << "Good day.";
} else {
  cout << "Good evening.";
}
// Outputs "Good evening."
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #Else
ADD COMMENT
Topic
Name
9+5 =