hi everyone, i just want to ask that can i make the following code into function?
if yes, wat data type should i use? string?Code:if(physicalCycle(dob, currentDate) < 100 && physicalCycle(dob, currentDate) > 0) { cout<<"Ascending"; } else if(physicalCycle(dob, currentDate) < 0) { cout<<"Descending"; } else { cout<<"Critical day"; }