Question: What will be assigned to variable message given the following code fragment? int main() { int num1 - 3; int num2 - 5: double

What will be assigned to variable message given the following code fragment?

 

What will be assigned to variable message given the following code fragment? int main() { int num1 - 3; int num2 - 5: double num3 = 6.0; string message-"; message=gradeltinum2) + gradelt(num1, num2); return 0; string gradelt (double scorePar) { if (scorePar < 60.0) return "Passed"; else return "Failed"; string gradelt (int num1Par, int num2Par) { if (num1Par >3&& num2Par > 3) return "YES": else return "NO";

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!