A complete C program starts in main. #include <stdio.h> brings in the input and output functions. printf prints with placeholders: %d for an int, %lld for a long long, %f for a double (with %.2f for two decimals) and %s for a string, and \n ends the line.
scanf("%d", &quantity) reads a number from standard input into a variable. The & passes the variable's address so scanf can fill it in; use %lf to read a double. scanf returns how many values it read, which tells you when the input runs out. main returns 0 to say the program succeeded.
In these exercises each test sends text to your program's input and compares what it prints with the expected output, line by line.
Read two values, print one formatted line, return 0.