Farenheit to celcius

Description:

Write a program which accept temperature in Farenheit and print it in celcius Test Case 1 Input (stdin) 99.5 Expected Output 37.5C Test Case 2 Input (stdin) 98.2 Expected Output 36.7778C

Program :

#include <iostream>

using namespace std;

int main()

{

float a;

  cin>>a;

  cout<<(a-32)/1.8<<'C';

return 0;

}