UVA 11984 A Change in Thermal Unit Solution

Problem: https://uva.onlinejudge.org/external/119/11984.pdf

Solve in C:

#include<stdio.h>
int main()
{

    int i,n;

    while(scanf("%d",&n)!=EOF)
    {
        for(i=1; i<=n; i++)
        {
            float c,f,C;
            scanf("%f%f",&c,&f);
            C=((5.0/9.0)*f)+c;
            printf("Case %d: %.2f\n",i,C);

        }


    }

}


No comments

Most View Post

Recent post

Codeforces Round 971 (Div. 4) 2009C. The Legend of Freya the Frog Solution

  Problem Link    https://codeforces.com/contest/2009/problem/C S olution in C++: /// Author : AH_Tonmoy #include < bits / stdc ++. h ...

Powered by Blogger.