Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

If Else in C++

int time = 20;
string result = (time < 18) ? "Good day." : "Good evening.";
cout << result; 
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #If #Else
ADD COMMENT
Topic
Name
7+4 =