#include <stdio.h>



void main()
{
	float temp;
	float convtemp;
	char choice;
	printf("Please enter temperature to convert");
	scanf("%f",&temp);
	printf("Please enter f or c");
	scanf(" %c",&choice);

	if(choice=='c')
	{
	convtemp=(temp*1.8)+32;
	}
	else
	{
	convtemp=(temp-32)/1.8;
	}

	printf("Result %f",convtemp);
} 

