Opening the reading…
Opening the reading…
PROGRAMMING FUNDAMENTALS › C++ FUNDAMENTALS
This is a scratch drill — your code runs, nothing is graded or recorded. No test cases, no expected output, no verdict.
TASK
Write and call printTicketCost so tickets = 3 maps to quantity, price = 20 maps to unitPrice, and the function prints 60. Change quantity inside the function, then print tickets in main to show that the caller still has 3.
OUTPUT
Sample60 3
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.