Okay, so here is my code so far.
I'm not sure how to connect the inputted C or F Enter 'C' for Celsius or 'F' for Fahrenheit: C to the inputted temperature Enter a temperature: 32.4 and then take all that and make it use the correct temperature conversion.
Code:
/* This program inputs a temperature with a letter representing Celsius */
/* or Fahrenheit then the program converts it to either Celsius or */
/* Fahrenheit. */
/* Directives */
#include <stdio.h>
int main(void)
{
float temp, fahrenheit;
printf("Enter a temperature: ");
scanf("%f", &temp);
printf("Enter 'C' for Celsius or 'F' for Fahrenheit: ");
switch (code)
{
case F:
case f:
scanf("%f", &fahrenheit);
/* End Program */
return(0);
}