UVA 11984 - A Change in Thermal Unit

UVA Aug 31, 2020

Problem PDF

Solution:

#include 
int main()
{
    int t,no=0;
    double f,a,c,d;
    scanf("%d",&t);
    while(t--)
    {
            scanf("%lf%lf",&c,&d);
             f = 9*c/5+d;
             a = f*5/9;
            printf("Case %d: %.2lf\n",++no,a);
    }
    return 0;
}
https://github.com/Shipu/OnlineJudgeProblemSolutionWithCPlusPlus/tree/master/uva/11984/11984.cpp

Tags

Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.