Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

conditions in c++

int time = 20;
string result = (time < 18) ? "Good day." : "Good evening.";
cout << result; 
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #conditions
ADD COMMENT
Topic
Name
8+5 =