Reading in single chunks of input is great, but being able to read in multiple pieces of input at once would be better. This can be accomplished using the scanf() function, which can read multiple inputs. For example:
int num1, num2; scanf("%d %d", &num1, &num2);
That line of code will read in two integer values, separated by a space, and assign them to the num1 and num2 variables.
To demonstrate this, the following example will take both a number (the temperature) and the letter F or C (which determines whether that value is in degrees Fahrenheit or degrees Celsius). The application will then convert that number to the other format.
Create a new file or project in your text editor ...